From ae93f3ea37ce1c5e98515fe128b162f507e4dcfc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Aug 2010 15:59:53 +0000 Subject: update for api changes --- add_curve_torus_knots.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'add_curve_torus_knots.py') 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'} -- cgit v1.2.3