Revision: 21706
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21706
Author:   campbellbarton
Date:     2009-07-19 20:51:25 +0200 (Sun, 19 Jul 2009)

Log Message:
-----------
d_type isnt a member of dirent on win32.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/python/intern/bpy_interface.c

Modified: 
branches/blender2.5/blender/source/blender/python/intern/bpy_interface.c
===================================================================
--- branches/blender2.5/blender/source/blender/python/intern/bpy_interface.c    
2009-07-19 17:45:14 UTC (rev 21705)
+++ branches/blender2.5/blender/source/blender/python/intern/bpy_interface.c    
2009-07-19 18:51:25 UTC (rev 21706)
@@ -511,9 +511,13 @@
                        if (de->d_name[0] == '.') {
                                /* do nothing, probably .svn */
                        }
+#ifndef __linux__
+                       else if( BLI_join_dirfile(path, dirname, de->d_name), 
S_ISDIR(BLI_exists(path))) {
+#else
                        else if(de->d_type==DT_DIR) {
+                               BLI_join_dirfile(path, dirname, de->d_name);
+#endif
                                /* support packages */
-                               BLI_join_dirfile(path, dirname, de->d_name);
                                BLI_join_dirfile(path, path, "__init__.py");
 
                                if(BLI_exists(path)) {


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to