Revision: 18050
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18050
Author:   campbellbarton
Date:     2008-12-24 22:53:15 +0100 (Wed, 24 Dec 2008)

Log Message:
-----------
* disable back buffer selection drawing while projection painting (was redoing 
for every update while painting)
* remove unneeded return from game engines py api - ConvertPythonToGameObject

Modified Paths:
--------------
    trunk/blender/source/blender/src/drawview.c
    trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp

Modified: trunk/blender/source/blender/src/drawview.c
===================================================================
--- trunk/blender/source/blender/src/drawview.c 2008-12-24 21:33:51 UTC (rev 
18049)
+++ trunk/blender/source/blender/src/drawview.c 2008-12-24 21:53:15 UTC (rev 
18050)
@@ -975,7 +975,8 @@
        int m;
 #endif
 
-       if(G.f & G_VERTEXPAINT || G.f & G_WEIGHTPAINT || G.f & G_TEXTUREPAINT);
+       if(     G.f & G_VERTEXPAINT || G.f & G_WEIGHTPAINT );
+       else if ((G.f & G_TEXTUREPAINT) && G.scene->toolsettings && 
(G.scene->toolsettings->imapaint.flag & IMAGEPAINT_PROJECT_DISABLE)==0);
        else if(G.obedit && G.vd->drawtype>OB_WIRE && (G.vd->flag & 
V3D_ZBUF_SELECT));
        else {
                G.vd->flag &= ~V3D_NEEDBACKBUFDRAW;

Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp    2008-12-24 
21:33:51 UTC (rev 18049)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp    2008-12-24 
21:53:15 UTC (rev 18050)
@@ -2082,7 +2082,6 @@
                        PyErr_SetString(PyExc_TypeError, "Expected 
KX_GameObject or a string for a name of a KX_GameObject, None is invalid");
                        return false;
                }
-               return (py_none_ok ? true : false);
        }
        
        if (PyString_Check(value)) {


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

Reply via email to