Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'add_advanced_objects_menu/make_struts.py')
-rw-r--r--add_advanced_objects_menu/make_struts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_advanced_objects_menu/make_struts.py b/add_advanced_objects_menu/make_struts.py
index 91e794a2..87aee753 100644
--- a/add_advanced_objects_menu/make_struts.py
+++ b/add_advanced_objects_menu/make_struts.py
@@ -479,7 +479,7 @@ def create_struts(self, context, ind, od, segments, solid, loops, manifold):
for truss_obj in bpy.context.scene.objects:
if not truss_obj.select:
continue
- truss_obj.select = False
+ truss_obj.select_set(False)
truss_mesh = truss_obj.to_mesh(context.scene, True, 'PREVIEW')
if not truss_mesh.edges:
continue
@@ -492,7 +492,7 @@ def create_struts(self, context, ind, od, segments, solid, loops, manifold):
mesh.from_pydata(verts, [], faces)
obj = bpy.data.objects.new("Struts", mesh)
bpy.context.scene.objects.link(obj)
- obj.select = True
+ obj.select_set(True)
obj.location = truss_obj.location
bpy.context.scene.objects.active = obj
mesh.update()