8000 Fix active_color_switch · oRazeD/VertexColorsPlus@fdc5c93 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdc5c93

Browse files
committed
Fix active_color_switch
1 parent 010bb38 commit fdc5c93

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

operators.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,12 @@ class COLORPLUS_OT_active_color_switch(DefaultsOperator):
191191

192192
def execute(self, context: Context):
193193
color_plus = context.scene.color_plus
194-
195194
saved_color_tweak = color_plus.live_color_tweak
196195
color_plus.live_color_tweak = False
197-
198-
color_plus.color_wheel = iterable_to_list(color_plus.color_wheel)
199-
color_plus.alt_color_wheel = \
200-
iterable_to_list(color_plus.alt_color_wheel)
201-
196+
color_wheel = iterable_to_list(color_plus.color_wheel)
197+
alt_color_wheel = iterable_to_list(color_plus.alt_color_wheel)
198+
color_plus.color_wheel = alt_color_wheel
199+
color_plus.alt_color_wheel = color_wheel
202200
color_plus.live_color_tweak = saved_color_tweak
203201
return {'FINISHED'}
204202

0 commit comments

Comments
 (0)
0