Smoke:
authorDaniel Genrich <daniel.genrich@gmx.net>
Thu, 20 Aug 2009 09:13:57 +0000 (09:13 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Thu, 20 Aug 2009 09:13:57 +0000 (09:13 +0000)
* Fix for OpenGL domain scaling/rotating/translating reported by Wahooney

source/blender/editors/space_view3d/drawvolume.c

index 325997ebf4d65bfd0160fa976ad44625eb64375d..53f193382bdec9c356ae2ae9c260ee613cc0d66d 100644 (file)
@@ -209,6 +209,7 @@ void draw_volume(Scene *scene, ARegion *ar, View3D *v3d, Base *base, GPUTexture
        glGetBooleanv(GL_DEPTH_TEST, (GLboolean *)&gl_depth);
 
        wmLoadMatrix(rv3d->viewmat);
+       wmMultMatrix(ob->obmat);        
 
        glDepthMask(GL_FALSE);
        glDisable(GL_DEPTH_TEST);
@@ -291,8 +292,6 @@ void draw_volume(Scene *scene, ARegion *ar, View3D *v3d, Base *base, GPUTexture
 
        MEM_freeN(points);
 
-       wmMultMatrix(ob->obmat);        
-
        if(!gl_blend)
                glDisable(GL_BLEND);
        if(gl_depth)