Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2003-12-02 21:39:32 +0300
committerTon Roosendaal <ton@blender.org>2003-12-02 21:39:32 +0300
commit5d2546eb14e8ee0f384d429767dc18003b158357 (patch)
tree6f4c49a2052444b058ce9b33d16ecd502b2f863a
parentee2cfabf131f564e4902a80f416deb4b8e3619a1 (diff)
- fixed vertexpaint and weightpaint, which stopped working because ofv2.31a
previous fix for Transform Panel... the convention that 3d window has to leave in 2d ortho mode also applies on backbuffer now, which left painting routine confused. A single call to persp(PERSP_VIEW) fixes this.
-rw-r--r--source/blender/src/vpaint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/vpaint.c b/source/blender/src/vpaint.c
index e1222394518..36317c7f2d7 100644
--- a/source/blender/src/vpaint.c
+++ b/source/blender/src/vpaint.c
@@ -798,6 +798,7 @@ void weight_paint(void)
// if(me->tface==NULL && me->mcol==NULL) return;
+ persp(PERSP_VIEW);
/* imat for normals */
Mat4MulMat4(mat, ob->obmat, G.vd->viewmat);
Mat4Invert(imat, mat);
@@ -956,6 +957,7 @@ void vertex_paint()
if(me->tface==NULL && me->mcol==NULL) return;
+ persp(PERSP_VIEW);
/* imat for normals */
Mat4MulMat4(mat, ob->obmat, G.vd->viewmat);
Mat4Invert(imat, mat);