From 70df942d31aaaa3d25b7c5543f28529cc51170cc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 8 Nov 2018 09:06:57 +1100 Subject: Update for changes in Blender's API --- curve_simplify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'curve_simplify.py') diff --git a/curve_simplify.py b/curve_simplify.py index e0d59c60..4a390feb 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -309,7 +309,7 @@ def main(context, obj, options, curve_dimension): newCurve = bpy.data.objects.new("Simple_" + obj.name, curve) coll = context.view_layer.active_layer_collection.collection coll.objects.link(newCurve) - newCurve.select_set('SELECT') + newCurve.select_set(True) context.view_layer.objects.active = newCurve newCurve.matrix_world = obj.matrix_world -- cgit v1.2.3