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_extra_objects | |
parent | b455cbf6b1074074c45cb365721b2d61a8004320 (diff) |
Update for Depsgraph API changes
Reviewers: sergey
Differential Revision: https://developer.blender.org/D4883
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_gears.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/add_mesh_extra_objects/add_mesh_gears.py b/add_mesh_extra_objects/add_mesh_gears.py index 88552d01..d5558e6c 100644 --- a/add_mesh_extra_objects/add_mesh_gears.py +++ b/add_mesh_extra_objects/add_mesh_gears.py @@ -556,10 +556,10 @@ def add_worm(teethNum, rowNum, radius, Ad, De, p_angle, #### 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 @@ -765,7 +765,7 @@ class AddGear(Operator): ##### INVOKE ##### def invoke(self, context, event): - bpy.context.scene.update() + bpy.context.view_layer.update() if self.change: bpy.context.scene.cursor.location = self.startlocation else: @@ -960,7 +960,7 @@ class AddWormGear(Operator): ##### INVOKE ##### def invoke(self, context, event): - bpy.context.scene.update() + bpy.context.view_layer.update() if self.change: bpy.context.scene.cursor.location = self.startlocation else: @@ -970,4 +970,4 @@ class AddWormGear(Operator): self.execute(context) - return {'FINISHED'}
\ No newline at end of file + return {'FINISHED'} |