Revision: 36246
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36246
Author:   campbellbarton
Date:     2011-04-20 12:55:42 +0000 (Wed, 20 Apr 2011)
Log Message:
-----------
fix [#27072] Calling bpy.utils.blend_paths(True) results in segmantaion fault 
since 2.56

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy.c

Modified: trunk/blender/source/blender/python/intern/bpy.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy.c    2011-04-20 12:30:13 UTC 
(rev 36245)
+++ trunk/blender/source/blender/python/intern/bpy.c    2011-04-20 12:55:42 UTC 
(rev 36246)
@@ -46,7 +46,7 @@
 #include "BLI_bpath.h"
 #include "BLI_utildefines.h"
 
-
+#include "BKE_main.h"
 #include "BKE_global.h" /* XXX, G.main only */
 #include "BKE_blender.h"
 
@@ -111,7 +111,7 @@
 
        list= PyList_New(0);
 
-       for(BLI_bpathIterator_init(&bpi, G.main, NULL, 0); 
!BLI_bpathIterator_isDone(bpi); BLI_bpathIterator_step(bpi)) {
+       for(BLI_bpathIterator_init(&bpi, G.main, G.main->name, 0); 
!BLI_bpathIterator_isDone(bpi); BLI_bpathIterator_step(bpi)) {
                /* build the list */
                if (absolute) {
                        BLI_bpathIterator_getPathExpanded(bpi, 
filepath_expanded);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to