From e5c3ae31189b3acb54d33061da2bd27c3d0abad5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 15 May 2019 14:11:13 +0200 Subject: Addons: Adopt for Dependency Graph API changes Mainly search-and-replace approach. Tested the enabled-by-default export/import addons. Seems to work with an exception of X3D which is still referencing Blender Internal material properties. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4866 --- io_scene_obj/import_obj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_scene_obj/import_obj.py') diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index b278c849..2763f8fe 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -1243,7 +1243,7 @@ def load(context, # we could apply this anywhere before scaling. obj.matrix_world = global_matrix - scene.update() + view_layer.update() axis_min = [1000000000] * 3 axis_max = [-1000000000] * 3 -- cgit v1.2.3