diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-05-17 13:36:11 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-05-17 15:18:02 +0300 |
commit | 222969e3805359444579d7ab96d75b93c73212fe (patch) | |
tree | 6b9985a4fc81544b428ce6d03d713ca11f9498ed /add_mesh_geodesic_domes | |
parent | b455cbf6b1074074c45cb365721b2d61a8004320 (diff) |
Update for Depsgraph API changes
Reviewers: sergey
Differential Revision: https://developer.blender.org/D4883
Diffstat (limited to 'add_mesh_geodesic_domes')
-rw-r--r-- | add_mesh_geodesic_domes/third_domes_panel_271.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add_mesh_geodesic_domes/third_domes_panel_271.py b/add_mesh_geodesic_domes/third_domes_panel_271.py index 41a3cf5d..2e7956de 100644 --- a/add_mesh_geodesic_domes/third_domes_panel_271.py +++ b/add_mesh_geodesic_domes/third_domes_panel_271.py @@ -50,10 +50,10 @@ def align_matrix(context, location): #### Delete object def ObjectDelete(self, context, delete): - bpy.context.scene.update() + bpy.context.view_layer.update() bpy.ops.object.mode_set(mode = 'OBJECT') bpy.ops.object.delete() - bpy.context.scene.update() + bpy.context.view_layer.update() return @@ -1563,7 +1563,7 @@ class GenerateGeodesicDome(Operator): #bpy.ops.view3d.snap_cursor_to_center() if geodesic_not_yet_called: geodesic_not_yet_called = False - bpy.context.scene.update() + bpy.context.view_layer.update() if self.change: bpy.context.scene.cursor.location = self.startlocation else: |