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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-15 13:33:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-15 13:36:50 +0300
commit0b9a65151d9fc0c7e4ec273da7e4bcc3b09a6d18 (patch)
treebdc5b9ee056ae87ad020e81994c1a9392db9e31a /release
parente375685e06d0b4c52a0aacb8982684e45b490d5c (diff)
Fix T60410: Crash adjusting torus w/ enter edit-mode preference
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/bpy_extras/object_utils.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py
index 5e8f497d1a0..df6feff4591 100644
--- a/release/scripts/modules/bpy_extras/object_utils.py
+++ b/release/scripts/modules/bpy_extras/object_utils.py
@@ -133,23 +133,6 @@ def object_data_add(context, obdata, operator=None, name=None):
obj_new.select_set(True)
obj_new.matrix_world = add_object_align_init(context, operator)
- # XXX
- # caused because entering edit-mode does not add a empty undo slot!
- if context.preferences.edit.use_enter_edit_mode:
- if not (obj_act and
- obj_act.mode == 'EDIT' and
- obj_act.type == obj_new.type):
-
- _obdata = bpy.data.meshes.new(name)
- obj_act = bpy.data.objects.new(_obdata.name, _obdata)
- obj_act.matrix_world = obj_new.matrix_world
- scene_collection.objects.link(obj_act)
- layer.objects.active = obj_act
- bpy.ops.object.mode_set(mode='EDIT')
- # need empty undo step
- bpy.ops.ed.undo_push(message="Enter Editmode")
- # XXX
-
if obj_act and obj_act.mode == 'EDIT' and obj_act.type == obj_new.type:
bpy.ops.mesh.select_all(action='DESELECT')
obj_act.select_set(True)