diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-07-17 11:10:40 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-07-17 17:30:57 +0300 |
commit | 184f7341bd171d411a326de6b4804b61c9903ad2 (patch) | |
tree | 87587af114f4147ffe5cd77fad53ffe8c8038bc0 /archimesh/achm_stairs_maker.py | |
parent | 37fe422f9a193007a31a3962b190660547b306b2 (diff) |
Archimesh: fix usages of bpy.ops.object.select_all
Fixes T67048: Adding archimesh stairs object to the scene flips normals
of all other objects in scene
Reviewers: antoniov, brecht
Maniphest Tasks: T67048
Differential Revision: https://developer.blender.org/D5282
Diffstat (limited to 'archimesh/achm_stairs_maker.py')
-rw-r--r-- | archimesh/achm_stairs_maker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archimesh/achm_stairs_maker.py b/archimesh/achm_stairs_maker.py index b8688e73..af727101 100644 --- a/archimesh/achm_stairs_maker.py +++ b/archimesh/achm_stairs_maker.py @@ -209,7 +209,7 @@ def create_stairs_mesh(self): if o.select_get() is True: o.select_set(False) - bpy.ops.object.select_all(False) + bpy.ops.object.select_all(action='DESELECT') # ------------------------ # Create stairs @@ -245,7 +245,7 @@ def create_stairs_mesh(self): mat = create_diffuse_material("Stairs_material", False, 0.8, 0.8, 0.8) set_material(mystairs, mat) - bpy.ops.object.select_all(False) + bpy.ops.object.select_all(action='DESELECT') mystairs.select_set(True) bpy.context.view_layer.objects.active = mystairs |