Fix for #12526: still didn't get dupli transform in envmaps correct.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 27 May 2008 11:05:33 +0000 (11:05 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 27 May 2008 11:05:33 +0000 (11:05 +0000)
source/blender/render/intern/source/envmap.c

index 73db5c4b0be798e09cf7ac940f024075d07c772c..aa4e40739da9f222dca2220b5e10fe4422030274 100644 (file)
@@ -241,7 +241,7 @@ static void env_rotate_scene(Render *re, float mat[][4], int mode)
                /* append or set matrix depending on dupli */
                if(obi->flag & R_DUPLI_TRANSFORMED) {
                        Mat4CpyMat4(tmpmat, obi->mat);
-                       Mat4MulMat4(obi->mat, tmat, tmpmat);
+                       Mat4MulMat4(obi->mat, tmpmat, tmat);
                }
                else if(mode==1)
                        Mat4CpyMat4(obi->mat, tmat);