Skip to content
Snippets Groups Projects
Commit 0befe74d authored by Campbell Barton's avatar Campbell Barton
Browse files

update for changes in blenders api.

parent 932edee0
No related branches found
No related tags found
No related merge requests found
......@@ -270,11 +270,7 @@ class GPENCIL_OT_SURFSK_add_surface(bpy.types.Operator):
else:
#### Vheck if there is a grease pencil layer. If not, quit.
try:
for i in range(len(self.main_object.grease_pencil.layers)):
if self.main_object.grease_pencil.layers[i].active:
gp_active_layer_idx = i
x = self.main_object.grease_pencil.layers[gp_active_layer_idx].active_frame.strokes
x = self.main_object.grease_pencil.layers.active.active_frame.strokes
except:
return{'CANCELLED'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment