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 /object_fracture
parenta6189ebcbe0fcee59f72147fcc160f7b47234354 (diff)
addons: object select_set syntax update
Diffstat (limited to 'object_fracture')
-rw-r--r--object_fracture/fracture_ops.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py
index 9cfcfb82..e6929d22 100644
--- a/object_fracture/fracture_ops.py
+++ b/object_fracture/fracture_ops.py
@@ -75,7 +75,7 @@ def create_cutter(context, crack_type, scale, roughness):
v.co[1] += roughness * scale * 0.1 * (random.random() - 0.5)
v.co[2] += roughness * scale * 0.1 * (random.random() - 0.5)
- bpy.context.active_object.select = True
+ bpy.context.active_object.select_set(True)
# bpy.context.scene.objects.active.select = True
'''
@@ -143,7 +143,7 @@ def getIslands(shard):
for gi in range(0, gindex):
bpy.ops.object.select_all(action='DESELECT')
bpy.context.scene.objects.active = shard
- shard.select = True
+ shard.select_set(True)
bpy.ops.object.duplicate(linked=False, mode='DUMMY')
a = bpy.context.scene.objects.active
sm = a.data
@@ -184,9 +184,9 @@ def boolop(ob, cutter, op):
gsize = sizex + sizey + sizez
bpy.ops.object.select_all()
- ob.select = True
+ ob.select_set(True)
sce.objects.active = ob
- cutter.select = False
+ cutter.select_set(False)
bpy.ops.object.modifier_add(type='BOOLEAN')
a = sce.objects.active