Revision: 16943
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16943
Author:   campbellbarton
Date:     2008-10-06 10:02:35 +0200 (Mon, 06 Oct 2008)

Log Message:
-----------
fix for [#17560] Error in BPY_run_python_script
any path starting with a '.' on win32 would be replaced with C:\ (or the 
default root)
this was added rev 6568 so the file selector would replace "." with C:\. should 
be moved to fileselector but for now compare with "." rather then checking the 
first char.

header_view3d.c - prop edit and render were aligning in curve edit mode.

Revision Links:
--------------
    
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=6568

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/util.c
    trunk/blender/source/blender/src/header_view3d.c

Modified: trunk/blender/source/blender/blenlib/intern/util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/util.c  2008-10-06 06:10:14 UTC 
(rev 16942)
+++ trunk/blender/source/blender/blenlib/intern/util.c  2008-10-06 08:02:35 UTC 
(rev 16943)
@@ -893,7 +893,10 @@
         */
        
 #ifdef WIN32
-       if(dir[0]=='.') {       /* happens for example in FILE_MAIN */
+       
+       /* Note, this should really be moved to the file selector,
+        * since this function is used in many areas */
+       if(strcmp(dir, ".")==0) {       /* happens for example in FILE_MAIN */
           get_default_root(dir);
           return;
        }       

Modified: trunk/blender/source/blender/src/header_view3d.c
===================================================================
--- trunk/blender/source/blender/src/header_view3d.c    2008-10-06 06:10:14 UTC 
(rev 16942)
+++ trunk/blender/source/blender/src/header_view3d.c    2008-10-06 08:02:35 UTC 
(rev 16943)
@@ -5796,6 +5796,7 @@
                                uiDefIconTextButS(block, ICONTEXTROW,B_REDR, 
ICON_SMOOTHCURVE, propfalloff_pup(), xco,0,XIC+10,YIC, &(G.scene->prop_mode), 
0.0, 0.0, 0, 0, "Proportional Edit Falloff (Hotkey: Shift O) ");
                                xco+= XIC+10;
                        }
+                       uiBlockEndAlign(block);
                        xco+= 10;
                }
 
@@ -5835,6 +5836,7 @@
                                uiDefIconButBitS(block, TOG, V3D_ZBUF_SELECT, 
B_REDR, ICON_ORTHO, xco,0,XIC,YIC, &G.vd->flag, 1.0, 0.0, 0, 0, "Occlude 
background geometry");
                                xco+= XIC;
                        }
+                       uiBlockEndAlign(block);
                        xco+= 20;
                }
                else if(G.f & G_PARTICLEEDIT) {
@@ -5850,6 +5852,7 @@
                                uiDefIconButBitS(block, TOG, V3D_ZBUF_SELECT, 
B_REDR, ICON_ORTHO, xco,0,XIC,YIC, &G.vd->flag, 1.0, 0.0, 0, 0, "Limit 
selection to visible (clipped with depth buffer)");
                                xco+= XIC;
                        }
+                       uiBlockEndAlign(block);
                        xco+= 20;
                }
 


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

Reply via email to