forked from bartvdbraak/blender
- fixed vertexpaint and weightpaint, which stopped working because of
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.
This commit is contained in:
parent
ee2cfabf13
commit
5d2546eb14
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user