diff options
Diffstat (limited to 'archimesh/achm_window_maker.py')
-rw-r--r-- | archimesh/achm_window_maker.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/archimesh/achm_window_maker.py b/archimesh/achm_window_maker.py index 64a9a3f8..48a9faa7 100644 --- a/archimesh/achm_window_maker.py +++ b/archimesh/achm_window_maker.py @@ -71,7 +71,7 @@ class AchmWindows(Operator): def create_object(self, context): # deselect all objects for o in bpy.data.objects: - o.select = False + o.select_set(False) # we create main object and mesh mainmesh = bpy.data.meshes.new("WindowFrane") @@ -84,7 +84,7 @@ def create_object(self, context): shape_mesh_and_create_children(mainobject, mainmesh) # we select, and activate, main object - mainobject.select = True + mainobject.select_set(True) bpy.context.scene.objects.active = mainobject @@ -100,12 +100,12 @@ def update_object(self, context): oldmesh = o.data oldname = o.data.name # Now we deselect that object to not delete it. - o.select = False + o.select_set(False) # and we create a new mesh tmp_mesh = bpy.data.meshes.new("temp") # deselect all objects for obj in bpy.data.objects: - obj.select = False + obj.select_set(False) # --------------------------------- # Clear Parent objects (autohole) @@ -123,13 +123,13 @@ def update_object(self, context): child.hide = False # must be visible to avoid bug child.hide_render = False # must be visible to avoid bug old = child.data - child.select = True + child.select_set(True) bpy.ops.object.delete() bpy.data.meshes.remove(old) except: dummy = -1 - myparent.select = True + myparent.select_set(True) bpy.ops.object.delete() # ----------------------- @@ -148,7 +148,7 @@ def update_object(self, context): bpy.data.meshes.remove(oldmesh) tmp_mesh.name = oldname # and select, and activate, the main object - o.select = True + o.select_set(True) bpy.context.scene.objects.active = o @@ -233,7 +233,7 @@ def shape_mesh_and_create_children(mainobject, tmp_mesh, update=False): # deactivate others for o in bpy.data.objects: if o.select is True and o.name != mainobject.name: - o.select = False + o.select_set(False) return @@ -720,9 +720,9 @@ def generate_leaf_window(myframe, mp, mymesh): # deactivate others for o in bpy.data.objects: if o.select is True: - o.select = False + o.select_set(False) - myframe.select = True + myframe.select_set(True) bpy.context.scene.objects.active = myframe return myframe |