diff options
author | NBurn <7nburn@gmail.com> | 2019-01-29 02:56:18 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-29 02:56:18 +0300 |
commit | bdc109a5309b26c718a3ae0ca6f2393c731fde0d (patch) | |
tree | 59a4407ac5380176416d508bc7b3e4d036c9d395 /object_fracture | |
parent | 3267eec939805e17b6fd3aaded869b63f0792820 (diff) |
addons: object select_get syntax update
Diffstat (limited to 'object_fracture')
-rw-r--r-- | object_fracture/fracture_ops.py | 2 | ||||
-rw-r--r-- | object_fracture/fracture_setup.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py index e6929d22..6230a685 100644 --- a/object_fracture/fracture_ops.py +++ b/object_fracture/fracture_ops.py @@ -281,7 +281,7 @@ def fracture_basic(context, nshards, crack_type, roughness): shards = [] for ob in context.scene.objects: - if ob.select: + if ob.select_get(): tobesplit.append(ob) i = 1 # I counts shards, starts with 1 - the original object diff --git a/object_fracture/fracture_setup.py b/object_fracture/fracture_setup.py index 02c435f8..d48d1d78 100644 --- a/object_fracture/fracture_setup.py +++ b/object_fracture/fracture_setup.py @@ -35,7 +35,7 @@ def setupshards(context): tobeprocessed = [] for ob in sce.objects: - if ob.select: + if ob.select_get(): tobeprocessed.append(ob) for ob in tobeprocessed: |