diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-15 02:34:25 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-15 02:34:25 +0400 |
commit | e7c4a25963cca7dd1a2c39c10825540ece1c8482 (patch) | |
tree | 633ee722745915cb1c1f55d8783ee8fe8702221c /release/scripts/modules/bpy_extras | |
parent | 6f7eb383c872ead4182ee4257d8072d8582e0ef7 (diff) |
Fix #30549: Error adding mesh object to scene
Diffstat (limited to 'release/scripts/modules/bpy_extras')
-rw-r--r-- | release/scripts/modules/bpy_extras/object_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py index 16e568dab99..33614f6ed4d 100644 --- a/release/scripts/modules/bpy_extras/object_utils.py +++ b/release/scripts/modules/bpy_extras/object_utils.py @@ -119,7 +119,7 @@ def object_data_add(context, obdata, operator=None, use_active_layer=True): v3d = context.space_data if use_active_layer: - if v3d.local_view: + if v3d and v3d.local_view: base.layers_from_view(context.space_data) base.layers[scene.active_layer] = True else: |