@@ -82,14 +82,14 @@ def update(self):
82
82
imgui .separator ()
83
83
84
84
# autoscale, center, maintain aspect
85
- if imgui .menu_item (f"Autoscale" , None , False )[0 ]:
85
+ if imgui .menu_item (f"Autoscale" , "" , False )[0 ]:
86
86
self .get_subplot ().auto_scale ()
87
87
88
- if imgui .menu_item (f"Center" , None , False )[0 ]:
88
+ if imgui .menu_item (f"Center" , "" , False )[0 ]:
89
89
self .get_subplot ().center_scene ()
90
90
91
91
_ , maintain_aspect = imgui .menu_item (
92
- "Maintain Aspect" , None , self .get_subplot ().camera .maintain_aspect
92
+ "Maintain Aspect" , "" , self .get_subplot ().camera .maintain_aspect
93
93
)
94
94
self .get_subplot ().camera .maintain_aspect = maintain_aspect
95
95
@@ -98,7 +98,7 @@ def update(self):
98
98
# toggles to flip axes cameras
99
99
for axis in ["x" , "y" , "z" ]:
100
100
scale = getattr (self .get_subplot ().camera .local , f"scale_{ axis } " )
101
- changed , flip = imgui .menu_item (f"Flip { axis } axis" , None , scale < 0 )
101
+ changed , flip = imgui .menu_item (f"Flip { axis } axis" , "" , bool ( scale < 0 ) )
102
102
103
103
if changed :
104
104
flip_axis (self .get_subplot (), axis , flip )
@@ -109,7 +109,7 @@ def update(self):
109
109
for plane in ["xy" , "xz" , "yz" ]:
110
110
grid = getattr (self .get_subplot ().axes .grids , plane )
111
111
visible = grid .visible
112
- changed , new_visible = imgui .menu_item (f"Grid { plane } " , None , visible )
112
+ changed , new_visible = imgui .menu_item (f"Grid { plane } " , "" , visible )
113
113
114
114
if changed :
115
115
grid .visible = new_visible
@@ -140,7 +140,7 @@ def update(self):
140
140
# controller options
141
141
if imgui .begin_menu ("Controller" ):
142
142
_ , enabled = imgui .menu_item (
143
- "Enabled" , None , self .get_subplot ().controller .enabled
143
+ "Enabled" , "" , self .get_subplot ().controller .enabled
144
144
)
145
145
146
146
self .get_subplot ().controller .enabled = enabled
@@ -163,7 +163,7 @@ def update(self):
163
163
164
164
clicked , _ = imgui .menu_item (
165
165
label = name ,
166
- shortcut = None ,
166
+ shortcut = "" ,
167
167
p_selected = current_type is controller_type_iter ,
168
168
)
169
169
0 commit comments