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:
Diffstat (limited to 'ant_landscape')
-rw-r--r--ant_landscape/add_mesh_ant_landscape.py5
-rw-r--r--ant_landscape/ant_functions.py14
-rw-r--r--ant_landscape/mesh_ant_displace.py7
3 files changed, 0 insertions, 26 deletions
diff --git a/ant_landscape/add_mesh_ant_landscape.py b/ant_landscape/add_mesh_ant_landscape.py
index bb2173d0..c80256d5 100644
--- a/ant_landscape/add_mesh_ant_landscape.py
+++ b/ant_landscape/add_mesh_ant_landscape.py
@@ -593,10 +593,6 @@ class AntAddLandscape(bpy.types.Operator):
if not self.refresh:
return {'PASS_THROUGH'}
- # turn off undo
- undo = bpy.context.preferences.edit.use_global_undo
- bpy.context.preferences.edit.use_global_undo = False
-
# turn off 'Enter Edit Mode'
use_enter_edit_mode = bpy.context.preferences.edit.use_enter_edit_mode
bpy.context.preferences.edit.use_enter_edit_mode = False
@@ -783,7 +779,6 @@ class AntAddLandscape(bpy.types.Operator):
self.refresh = False
# restore pre operator state
- context.preferences.edit.use_global_undo = undo
bpy.context.preferences.edit.use_enter_edit_mode = use_enter_edit_mode
return {'FINISHED'}
diff --git a/ant_landscape/ant_functions.py b/ant_landscape/ant_functions.py
index 62fe4916..075c33b0 100644
--- a/ant_landscape/ant_functions.py
+++ b/ant_landscape/ant_functions.py
@@ -141,10 +141,6 @@ class AntLandscapeRefresh(bpy.types.Operator):
def execute(self, context):
- # turn off undo
- undo = bpy.context.preferences.edit.use_global_undo
- bpy.context.preferences.edit.use_global_undo = False
-
# ant object items
obj = bpy.context.active_object
@@ -177,9 +173,6 @@ class AntLandscapeRefresh(bpy.types.Operator):
else:
pass
- # restore pre operator undo state
- context.preferences.edit.use_global_undo = undo
-
return {'FINISHED'}
# ------------------------------------------------------------
@@ -201,10 +194,6 @@ class AntLandscapeRegenerate(bpy.types.Operator):
def execute(self, context):
- # turn off undo
- undo = bpy.context.preferences.edit.use_global_undo
- bpy.context.preferences.edit.use_global_undo = False
-
view_layer = bpy.context.view_layer
# ant object items
obj = bpy.context.active_object
@@ -328,9 +317,6 @@ class AntLandscapeRegenerate(bpy.types.Operator):
new_ob.select_set(True)
view_layer.objects.active = new_ob
- # restore pre operator undo state
- context.preferences.edit.use_global_undo = undo
-
return {'FINISHED'}
diff --git a/ant_landscape/mesh_ant_displace.py b/ant_landscape/mesh_ant_displace.py
index 3442711f..917cc34b 100644
--- a/ant_landscape/mesh_ant_displace.py
+++ b/ant_landscape/mesh_ant_displace.py
@@ -596,10 +596,6 @@ class AntMeshDisplace(bpy.types.Operator):
if not self.refresh:
return {'PASS_THROUGH'}
- # turn off undo
- undo = bpy.context.preferences.edit.use_global_undo
- bpy.context.preferences.edit.use_global_undo = False
-
ob = context.object
# Properties:
@@ -725,7 +721,4 @@ class AntMeshDisplace(bpy.types.Operator):
if self.auto_refresh is False:
self.refresh = False
- # restore pre operator undo state
- context.preferences.edit.use_global_undo = undo
-
return {'FINISHED'}