Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mesh_bsurfaces.py')
-rw-r--r--mesh_bsurfaces.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index 18697d11..5c007c59 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -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'}