diff options
author | Ton Roosendaal <ton@blender.org> | 2003-12-02 21:39:32 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-12-02 21:39:32 +0300 |
commit | 5d2546eb14e8ee0f384d429767dc18003b158357 (patch) | |
tree | 6f4c49a2052444b058ce9b33d16ecd502b2f863a | |
parent | ee2cfabf131f564e4902a80f416deb4b8e3619a1 (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.c | 2 |
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); |