diff options
author | NBurn <7nburn@gmail.com> | 2019-01-29 17:08:23 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-29 17:08:23 +0300 |
commit | 5c994fde52196dfe8a7e0db03b6935bac001d353 (patch) | |
tree | a7836a0741695b78df699e59a30f2a527202a815 /object_fracture | |
parent | 8b93448f56ecdf9c91ad1b6297580eedf1f6e18f (diff) |
addons: more view_layer syntax updates
Diffstat (limited to 'object_fracture')
-rw-r--r-- | object_fracture/fracture_ops.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py index 73e027a3..7d24116a 100644 --- a/object_fracture/fracture_ops.py +++ b/object_fracture/fracture_ops.py @@ -234,6 +234,7 @@ def boolop(ob, cutter, op): def splitobject(context, ob, crack_type, roughness): scene = context.scene + view_layer = context.view_layer size = getsizefrommesh(ob) shards = [] @@ -251,7 +252,7 @@ def splitobject(context, ob, crack_type, roughness): random.random() * 5000.0, random.random() * 5000.0] - scene.objects.active = ob + view_layer.objects.active = ob operations = ['INTERSECT', 'DIFFERENCE'] for op in operations: |