diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-13 01:01:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-13 01:01:27 +0400 |
commit | 6895a9f11f0492671b7a243ca0b5730fc66f65e2 (patch) | |
tree | cd90de3dfb10d6fe78e7ac428ae6ac9e5aa5aa77 /release/scripts | |
parent | 4e24e31f8bdba794ef9acb514b9673a606e26828 (diff) |
fix [#36713] crash from adding gear from 'extra objects' addon
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bpy_extras/object_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py index 7d8caf449ca..7ce5aff581a 100644 --- a/release/scripts/modules/bpy_extras/object_utils.py +++ b/release/scripts/modules/bpy_extras/object_utils.py @@ -170,6 +170,8 @@ def object_data_add(context, obdata, operator=None, use_active_layer=True): bpy.ops.object.join() # join into the active. bpy.data.meshes.remove(obdata) + # base is freed, set to active object + base = scene.object_bases.active bpy.ops.object.mode_set(mode='EDIT') else: |