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_cell
parenta6189ebcbe0fcee59f72147fcc160f7b47234354 (diff)
addons: object select_set syntax update
Diffstat (limited to 'object_fracture_cell')
-rw-r--r--object_fracture_cell/__init__.py4
-rw-r--r--object_fracture_cell/fracture_cell_setup.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/object_fracture_cell/__init__.py b/object_fracture_cell/__init__.py
index c1220374..f4122d33 100644
--- a/object_fracture_cell/__init__.py
+++ b/object_fracture_cell/__init__.py
@@ -72,7 +72,7 @@ def main_object(scene, obj, level, **kw):
from . import fracture_cell_setup
# not essential but selection is visual distraction.
- obj.select = False
+ obj.select_set(False)
if kw_copy["use_debug_redraw"]:
obj_display_type_prev = obj.display_type
@@ -198,7 +198,7 @@ def main(context, **kw):
bpy.ops.object.select_all(action='DESELECT')
for obj_cell in objects:
- obj_cell.select = True
+ obj_cell.select_set(True)
if mass_mode == 'UNIFORM':
for obj_cell in objects:
diff --git a/object_fracture_cell/fracture_cell_setup.py b/object_fracture_cell/fracture_cell_setup.py
index 93ac1b9a..2b46715f 100644
--- a/object_fracture_cell/fracture_cell_setup.py
+++ b/object_fracture_cell/fracture_cell_setup.py
@@ -392,9 +392,9 @@ def cell_fracture_boolean(scene, obj, objects,
# this is ugly and Im not proud of this - campbell
base = None
for base in scene.object_bases:
- base.select = False
+ base.select_set(False)
for obj_cell in objects_boolean:
- obj_cell.select = True
+ obj_cell.select_set(True)
bpy.ops.mesh.separate(type='LOOSE')