[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1767] trunk/py/scripts/addons/ mesh_bsurfaces.py: update for changes in blenders api.

Campbell Barton ideasman42 at gmail.com
Sat Apr 2 13:19:19 CEST 2011


Revision: 1767
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1767
Author:   campbellbarton
Date:     2011-04-02 11:19:19 +0000 (Sat, 02 Apr 2011)
Log Message:
-----------
update for changes in blenders api.

Modified Paths:
--------------
    trunk/py/scripts/addons/mesh_bsurfaces.py

Modified: trunk/py/scripts/addons/mesh_bsurfaces.py
===================================================================
--- trunk/py/scripts/addons/mesh_bsurfaces.py	2011-04-01 23:08:36 UTC (rev 1766)
+++ trunk/py/scripts/addons/mesh_bsurfaces.py	2011-04-02 11:19:19 UTC (rev 1767)
@@ -270,11 +270,7 @@
         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'}
                 



More information about the Bf-extensions-cvs mailing list