diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-13 01:29:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-13 02:52:25 +0300 |
commit | 3ea7a5d8699c74ddf4ea7b359022145e44f62bc2 (patch) | |
tree | fafc783e8c8c5bc67446fcf3f0c1d823f9e17324 /release | |
parent | 3146a07e3ecff46e4b006e761de2ac04af09d370 (diff) |
Revert "Fix T62436: New added Torus won't appear in Local View"
This reverts commit 9054b39b27c4198f436329f78af43fe3f3175508.
Using the region data to find the screen & space-data doesn't make sense
since local-view is space-data there is no reason to pass in a region
argument, then lookup the space-data.
There was no way to remove an object or check it's local view state
as there was in 2.7x.
This can be made closer to 2.7x API and simplified.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bpy_extras/object_utils.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py index f020431c6bb..5f3d6fbc50f 100644 --- a/release/scripts/modules/bpy_extras/object_utils.py +++ b/release/scripts/modules/bpy_extras/object_utils.py @@ -133,11 +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) - space_data = context.space_data - if space_data.type == 'VIEW_3D': - if space_data.local_view: - space_data.region_3d.local_view_add(obj_new) - 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) |