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:
authorNBurn <7nburn@gmail.com>2019-01-25 06:59:16 +0300
committerNBurn <7nburn@gmail.com>2019-01-25 06:59:16 +0300
commitc686df25d98bc6a08ad02b9f4f9cff6b4aee4805 (patch)
tree2ddb8dd6ee0fc2bd546bb95691c07b906aeab1cf /add_mesh_extra_objects
parenta6189ebcbe0fcee59f72147fcc160f7b47234354 (diff)
addons: object select_set syntax update
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/Wallfactory.py2
-rw-r--r--add_mesh_extra_objects/add_empty_as_parent.py4
-rw-r--r--add_mesh_extra_objects/add_mesh_beam_builder.py2
-rw-r--r--add_mesh_extra_objects/add_mesh_round_brilliant.py2
-rw-r--r--add_mesh_extra_objects/add_mesh_triangles.py2
-rw-r--r--add_mesh_extra_objects/geodesic_domes/vefm_271.py2
6 files changed, 7 insertions, 7 deletions
diff --git a/add_mesh_extra_objects/Wallfactory.py b/add_mesh_extra_objects/Wallfactory.py
index b6d7460f..f7edf659 100644
--- a/add_mesh_extra_objects/Wallfactory.py
+++ b/add_mesh_extra_objects/Wallfactory.py
@@ -877,7 +877,7 @@ class add_mesh_wallb(Operator):
# leave this out to prevent 'Tab key" going into edit mode :)
# Use rmb click to select and still modify.
scene.objects.active = ob_new
- ob_new.select = True
+ ob_new.select_set(True)
ob_new.location = tuple(context.scene.cursor_location)
ob_new.rotation_quaternion = [1.0, 0.0, 0.0, 0.0]
diff --git a/add_mesh_extra_objects/add_empty_as_parent.py b/add_mesh_extra_objects/add_empty_as_parent.py
index 0d4716a3..56334044 100644
--- a/add_mesh_extra_objects/add_empty_as_parent.py
+++ b/add_mesh_extra_objects/add_empty_as_parent.py
@@ -85,12 +85,12 @@ class P2E(Operator):
bpy.ops.collection.objects_add_active()
for o in objs:
- o.select = True
+ o.select_set(True)
if not o.parent:
bpy.ops.object.parent_set(type='OBJECT')
if self.grupo:
bpy.ops.collection.objects_add_active()
- o.select = False
+ o.select_set(False)
for o in objs:
if self.renom:
o.name = self.nombre + '_' + o.name
diff --git a/add_mesh_extra_objects/add_mesh_beam_builder.py b/add_mesh_extra_objects/add_mesh_beam_builder.py
index 8c876953..70324052 100644
--- a/add_mesh_extra_objects/add_mesh_beam_builder.py
+++ b/add_mesh_extra_objects/add_mesh_beam_builder.py
@@ -665,7 +665,7 @@ def addBeamObj(sRef, context):
beamObj = bpy.data.objects.new("Beam", beamMesh)
context.scene.objects.link(beamObj)
context.scene.objects.active = beamObj
- beamObj.select = True
+ beamObj.select_set(True)
beamMesh.from_pydata(verts, [], faces)
beamMesh.update(calc_edges=True)
diff --git a/add_mesh_extra_objects/add_mesh_round_brilliant.py b/add_mesh_extra_objects/add_mesh_round_brilliant.py
index b5c0f869..2d653f9e 100644
--- a/add_mesh_extra_objects/add_mesh_round_brilliant.py
+++ b/add_mesh_extra_objects/add_mesh_round_brilliant.py
@@ -237,7 +237,7 @@ def addBrilliant(context, s, table_w, crown_h, girdle_t, pavi_d, bezel_f,
# activate and select object
scene.objects.active = dobj
- dobj.select = True
+ dobj.select_set(True)
obj = bpy.context.active_object
# flip all face normals outside
diff --git a/add_mesh_extra_objects/add_mesh_triangles.py b/add_mesh_extra_objects/add_mesh_triangles.py
index 8a662547..de577f9d 100644
--- a/add_mesh_extra_objects/add_mesh_triangles.py
+++ b/add_mesh_extra_objects/add_mesh_triangles.py
@@ -282,7 +282,7 @@ class MakeTriangle(Operator):
# before doing the deselect make sure edit mode isn't active
exitEditMode()
bpy.ops.object.select_all(action="DESELECT")
- NewObj.select = True
+ NewObj.select_set(True)
context.scene.objects.active = NewObj
if self.at_3Dcursor is True:
diff --git a/add_mesh_extra_objects/geodesic_domes/vefm_271.py b/add_mesh_extra_objects/geodesic_domes/vefm_271.py
index 8c87c22a..4b5f68e7 100644
--- a/add_mesh_extra_objects/geodesic_domes/vefm_271.py
+++ b/add_mesh_extra_objects/geodesic_domes/vefm_271.py
@@ -834,7 +834,7 @@ class importmesh(mesh):
obj = bpy.data.objects[meshname]
bpy.context.scene.objects.active = obj
- obj.select = True
+ obj.select_set(True)
impmesh = None
if not breakquadflag:
bpy.ops.object.mode_set(mode='EDIT')