Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--add_curve_aceous_galore.py6
-rw-r--r--add_curve_torus_knots.py6
-rw-r--r--add_mesh_ant_landscape.py6
-rw-r--r--add_mesh_solid.py4
-rw-r--r--curve_simplify.py4
5 files changed, 13 insertions, 13 deletions
diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py
index fe8cefa1..6f237c1f 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 7a28edc2..aa1f3071 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 b720a626..bbb9d293 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 540b6285..99bae8da 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 d644e0de..09377915 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'}