diff options
author | NBurn <7nburn@gmail.com> | 2019-01-25 06:59:16 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-25 06:59:16 +0300 |
commit | c686df25d98bc6a08ad02b9f4f9cff6b4aee4805 (patch) | |
tree | 2ddb8dd6ee0fc2bd546bb95691c07b906aeab1cf /archimesh/achm_roof_maker.py | |
parent | a6189ebcbe0fcee59f72147fcc160f7b47234354 (diff) |
addons: object select_set syntax update
Diffstat (limited to 'archimesh/achm_roof_maker.py')
-rw-r--r-- | archimesh/achm_roof_maker.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archimesh/achm_roof_maker.py b/archimesh/achm_roof_maker.py index 84564e75..6cce3c30 100644 --- a/archimesh/achm_roof_maker.py +++ b/archimesh/achm_roof_maker.py @@ -159,7 +159,7 @@ def create_roof_mesh(self): # deactivate others for o in bpy.data.objects: if o.select is True: - o.select = False + o.select_set(False) bpy.ops.object.select_all(False) mydata = create_roof(self) @@ -167,10 +167,10 @@ def create_roof_mesh(self): # active object and deactivate others if bpy.context.scene.objects.active is not None: - bpy.context.scene.objects.active.select = False + bpy.context.scene.objects.active.select_set(False) bpy.context.scene.objects.active = myroof - myroof.select = True + myroof.select_set(True) # Thicknes if self.roof_thick > 0.0: @@ -211,7 +211,7 @@ def create_roof_mesh(self): set_material(myroof, mat) bpy.ops.object.select_all(False) - myroof.select = True + myroof.select_set(True) bpy.context.scene.objects.active = myroof return |