diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py index fe8cefa1bc84462627683628a221cae061cc55d4..6f237c1f19a873ec1749fc9dbaa42508d5d738a2 100644 --- a/add_curve_aceous_galore.py +++ b/add_curve_aceous_galore.py @@ -1070,8 +1070,8 @@ class Curveaceous_galore(bpy.types.Operator): ##### EXECUTE ##### def execute(self, context): # turn off undo - undo = bpy.context.user_preferences.edit.global_undo - bpy.context.user_preferences.edit.global_undo = False + undo = bpy.context.user_preferences.edit.use_global_undo + bpy.context.user_preferences.edit.use_global_undo = False # deal with 2D - 3D curve differences props = self.properties @@ -1090,7 +1090,7 @@ class Curveaceous_galore(bpy.types.Operator): main(context, props, self.align_matrix) # restore pre operator undo state - bpy.context.user_preferences.edit.global_undo = undo + bpy.context.user_preferences.edit.use_global_undo = undo return {'FINISHED'} diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py index 7a28edc2b398e300d019e122250a8fe921ee7b59..aa1f307137884491999417503da9189a68026d86 100644 --- a/add_curve_torus_knots.py +++ b/add_curve_torus_knots.py @@ -280,8 +280,8 @@ class torus_knot_plus(bpy.types.Operator): ##### EXECUTE ##### def execute(self, context): # turn off undo - undo = bpy.context.user_preferences.edit.global_undo - bpy.context.user_preferences.edit.global_undo = False + undo = bpy.context.user_preferences.edit.use_global_undo + bpy.context.user_preferences.edit.use_global_undo = False props = self.properties @@ -292,7 +292,7 @@ class torus_knot_plus(bpy.types.Operator): main(context, props, self.align_matrix) # restore pre operator undo state - bpy.context.user_preferences.edit.global_undo = undo + bpy.context.user_preferences.edit.use_global_undo = undo return {'FINISHED'} diff --git a/add_mesh_ant_landscape.py b/add_mesh_ant_landscape.py index b720a626f841fedb996f283a83c2a90a83387e65..bbb9d2932c9d84ae7a2891f07c5934f2939ba669 100644 --- a/add_mesh_ant_landscape.py +++ b/add_mesh_ant_landscape.py @@ -669,8 +669,8 @@ class landscape_add(bpy.types.Operator): # Execute def execute(self, context): # turn off undo - undo = bpy.context.user_preferences.edit.global_undo - bpy.context.user_preferences.edit.global_undo = False + undo = bpy.context.user_preferences.edit.use_global_undo + bpy.context.user_preferences.edit.use_global_undo = False # deselect all objects bpy.ops.object.select_all(action='DESELECT') @@ -734,7 +734,7 @@ class landscape_add(bpy.types.Operator): obj = create_mesh_object(context, verts, [], faces, "Landscape", edit, self.align_matrix) # restore pre operator undo state - bpy.context.user_preferences.edit.global_undo = undo + bpy.context.user_preferences.edit.use_global_undo = undo return {'FINISHED'} def invoke(self, context, event): diff --git a/add_mesh_solid.py b/add_mesh_solid.py index 540b6285c4ac076066ab728b0fc0cca7b33dbbd8..99bae8da27984fe0a88d22c96dfe10f33ad9b7b2 100644 --- a/add_mesh_solid.py +++ b/add_mesh_solid.py @@ -741,7 +741,7 @@ class Solids(bpy.types.Operator): def execute(self,context): # turn off undo for better performance (3 - 5x faster), also makes sure # that mesh ops are undoable and entire script acts as one operator - bpy.context.user_preferences.edit.global_undo = False + bpy.context.user_preferences.edit.use_global_undo = False props = self.properties @@ -794,7 +794,7 @@ class Solids(bpy.types.Operator): bpy.ops.object.mode_set(mode=current_mode) # turn undo back on - bpy.context.user_preferences.edit.global_undo = True + bpy.context.user_preferences.edit.use_global_undo = True return {'FINISHED'} diff --git a/curve_simplify.py b/curve_simplify.py index d644e0dea02ecb28d46907e86e4c9ab6d155a384..09377915502d05f61081a5cc3524728c6f79417e 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -569,14 +569,14 @@ class CURVE_OT_simplify(bpy.types.Operator): self.properties.keepShort] #7 - bpy.context.user_preferences.edit.global_undo = False + bpy.context.user_preferences.edit.use_global_undo = False bpy.ops.object.mode_set(mode='OBJECT', toggle=True) obj = context.active_object main(context, obj, options) - bpy.context.user_preferences.edit.global_undo = True + bpy.context.user_preferences.edit.use_global_undo = True #print("-------END-------") return {'FINISHED'}