diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-06 19:29:00 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-06 19:29:00 +0300 |
commit | f6a54aa234d6d59ceac15f2944c2ddc5f29aac0a (patch) | |
tree | 87351e1e2542eb642ffb044f9508040d8cfbe443 /curve_simplify.py | |
parent | 7461a6811331bee00e4e6f3c642e05ebcae75add (diff) |
Updates for change in ViewLayer RNA API.
Diffstat (limited to 'curve_simplify.py')
-rw-r--r-- | curve_simplify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/curve_simplify.py b/curve_simplify.py index e14b2857..e0d59c60 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -307,7 +307,7 @@ def main(context, obj, options, curve_dimension): # create new object and put into scene newCurve = bpy.data.objects.new("Simple_" + obj.name, curve) - coll = context.view_layer.collections.active.collection + coll = context.view_layer.active_layer_collection.collection coll.objects.link(newCurve) newCurve.select_set('SELECT') |