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:
authorCampbell Barton <ideasman42@gmail.com>2011-04-02 15:19:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-02 15:19:19 +0400
commit0befe74d8b43f72f29377f6868d1aea329e6ed8f (patch)
tree2a29fcf44f8e177fe19a0af1129227d21816f80c /mesh_bsurfaces.py
parent932edee01a2e18d3fc45d4689b738d5c73207dde (diff)
update for changes in blenders api.
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'}