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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-05-17 12:51:38 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-05-17 13:38:05 +0300
commit77f92b8cb73c0d46838749aae7836c60cff09db9 (patch)
tree8e6dffaddb57a3d20b1f9e5f84f92115bcf4944e /release/scripts/modules/bpy_extras
parent39a29d843e6b58a873abf6555fad06c55c336cae (diff)
Update for Depsgraph API changes
Reviewers: sergey Differential Revision: https://developer.blender.org/D4881
Diffstat (limited to 'release/scripts/modules/bpy_extras')
-rw-r--r--release/scripts/modules/bpy_extras/object_utils.py2
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 3a751a7b907..749b6eb111c 100644
--- a/release/scripts/modules/bpy_extras/object_utils.py
+++ b/release/scripts/modules/bpy_extras/object_utils.py
@@ -141,7 +141,7 @@ def object_data_add(context, obdata, operator=None, name=None):
bpy.ops.object.mode_set(mode='OBJECT')
obj_act.select_set(True)
- scene.update() # apply location
+ layer.update() # apply location
# layer.objects.active = obj_new
# Match up UV layers, this is needed so adding an object with UV's