diff --git a/deform/lattice.py b/deform/lattice.py index b34a465..0721a71 100644 --- a/deform/lattice.py +++ b/deform/lattice.py @@ -26,6 +26,7 @@ from .. lib.collections import move_to_utils_collection, isolate_in_utils_collection, hide_utils_collection from .. lib.math import generate_bounding_box, v3_average from .. lib.numeric_input import update_stream, no_stream, get_stream_value, new_stream +from .. lib.modifiers import rectify_mod_order mod_lattice = "Lattice — ND L" @@ -295,6 +296,8 @@ def add_lattice_modifier(self, context): lattice.object = self.lattice_obj lattice.show_expanded = False + rectify_mod_order(context.active_object, lattice.name) + self.lattice = lattice diff --git a/deform/simple_deform.py b/deform/simple_deform.py index d8915bc..864c7d3 100644 --- a/deform/simple_deform.py +++ b/deform/simple_deform.py @@ -26,6 +26,7 @@ from .. lib.preferences import get_preferences from .. lib.axis import init_axis, register_axis_handler, unregister_axis_handler from .. lib.numeric_input import update_stream, no_stream, get_stream_value, new_stream +from .. lib.modifiers import rectify_mod_order mod_deform = "Deform — ND SD" @@ -201,6 +202,8 @@ def add_simple_deform_modifier(self, context): deform = context.active_object.modifiers.new(mod_deform, 'SIMPLE_DEFORM') deform.show_expanded = False + rectify_mod_order(context.active_object, deform.name) + self.deform = deform diff --git a/extrusion/profile_extrude.py b/extrusion/profile_extrude.py index 7ae526b..d3bfe3a 100644 --- a/extrusion/profile_extrude.py +++ b/extrusion/profile_extrude.py @@ -25,6 +25,7 @@ from .. lib.preferences import get_preferences from .. lib.axis import init_axis, register_axis_handler, unregister_axis_handler from .. lib.numeric_input import update_stream, no_stream, get_stream_value, new_stream +from .. lib.modifiers import rectify_mod_order mod_screw = "Extrusion — ND PE" @@ -240,6 +241,8 @@ def add_weighting_modifier(self, context): offset.mid_level = 0 offset.show_expanded = False + rectify_mod_order(context.active_object, offset.name) + self.weighting_offset = offset @@ -249,6 +252,8 @@ def add_offset_modifier(self, context): offset.mid_level = 0 offset.show_expanded = False + rectify_mod_order(context.active_object, offset.name) + self.displace = offset @@ -259,6 +264,8 @@ def add_screw_modifier(self, context): screw.angle = 0 screw.show_expanded = False + rectify_mod_order(context.active_object, screw.name) + self.screw = screw diff --git a/extrusion/screw.py b/extrusion/screw.py index a06aeed..b6d44dc 100644 --- a/extrusion/screw.py +++ b/extrusion/screw.py @@ -26,6 +26,7 @@ from .. lib.preferences import get_preferences from .. lib.axis import init_axis, register_axis_handler, unregister_axis_handler from .. lib.numeric_input import update_stream, no_stream, get_stream_value, new_stream +from .. lib.modifiers import rectify_mod_order mod_displace = "Offset — ND SCR" @@ -239,6 +240,8 @@ def add_displace_modifier(self, context): displace.mid_level = 0 displace.space = 'LOCAL' displace.show_expanded = False + + rectify_mod_order(context.active_object, displace.name) self.displace = displace @@ -251,6 +254,8 @@ def add_screw_modifier(self, context): screw.use_normal_calculate = True screw.show_expanded = False + rectify_mod_order(context.active_object, screw.name) + self.screw = screw diff --git a/extrusion/solidify.py b/extrusion/solidify.py index 37eab42..9eeccc3 100644 --- a/extrusion/solidify.py +++ b/extrusion/solidify.py @@ -25,6 +25,7 @@ from .. lib.events import capture_modifier_keys, pressed from .. lib.preferences import get_preferences from .. lib.numeric_input import update_stream, no_stream, get_stream_value, new_stream +from .. lib.modifiers import rectify_mod_order mod_displace = "Offset — ND SOL" @@ -213,6 +214,8 @@ def add_displace_modifier(self, context): displace.mid_level = 0 displace.show_expanded = False + rectify_mod_order(context.active_object, displace.name) + self.displace = displace @@ -222,6 +225,8 @@ def add_solidify_modifier(self, context): solidify.show_expanded = False solidify.nonmanifold_thickness_mode = 'CONSTRAINTS' + rectify_mod_order(context.active_object, solidify.name) + self.solidify = solidify diff --git a/replicate/array_cubed.py b/replicate/array_cubed.py index 83cf171..6087f62 100644 --- a/replicate/array_cubed.py +++ b/replicate/array_cubed.py @@ -25,6 +25,7 @@ from .. lib.preferences import get_preferences from .. lib.axis import init_axis, register_axis_handler, unregister_axis_handler from .. lib.numeric_input import update_stream, no_stream, get_stream_value, new_stream +from .. lib.modifiers import rectify_mod_order mod_array_x = "Array³ X — ND" @@ -217,6 +218,8 @@ def add_array_modifier(self, context, name, axis): array.show_expanded = False self.axes[axis] = [array, 1, 2] + + rectify_mod_order(context.active_object, array.name) def operate(self, context): diff --git a/replicate/circular_array.py b/replicate/circular_array.py index e61bffe..c810194 100644 --- a/replicate/circular_array.py +++ b/replicate/circular_array.py @@ -29,6 +29,7 @@ from .. lib.preferences import get_preferences from .. lib.objects import set_origin from .. lib.numeric_input import update_stream, no_stream, get_stream_value, new_stream +from .. lib.modifiers import rectify_mod_order mod_displace = 'Displace — ND CA' @@ -291,6 +292,8 @@ def add_array_modifier(self): array.offset_object = self.rotator_obj array.show_expanded = False + rectify_mod_order(self.reference_obj, array.name) + self.array = array @@ -308,6 +311,8 @@ def add_displace_tranform_modifiers(self): displace.strength = self.reference_obj_prev_location[index] - self.reference_obj.location[index] displace.show_expanded = False + rectify_mod_order(self.reference_obj, displace.name) + self.displace_transforms.append(displace) @@ -319,6 +324,8 @@ def add_displace_modifier(self): displace.show_on_cage = True displace.show_expanded = False + rectify_mod_order(self.reference_obj, displace.name) + if self.single_obj_mode: self.offset = self.reference_obj.dimensions[self.axis] displace.strength = self.offset