[Bf-blender-cvs] [2759145] master: Correct own regression drawing lamp outline

Campbell Barton noreply at git.blender.org
Tue Apr 29 20:53:30 CEST 2014


Commit: 27591458aab788de511b5feaa1b3bcad7208e31b
Author: Campbell Barton
Date:   Wed Apr 30 04:52:31 2014 +1000
https://developer.blender.org/rB27591458aab788de511b5feaa1b3bcad7208e31b

Correct own regression drawing lamp outline

===================================================================

M	source/blender/editors/space_view3d/drawobject.c

===================================================================

diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 86383ba..e586ce0 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -1258,7 +1258,7 @@ static void drawlamp(View3D *v3d, RegionView3D *rv3d, Base *base,
 
 		copy_v3_fl3(lvec, 0.0f, 0.0f, 1.0f);
 		copy_v3_fl3(vvec, rv3d->persmat[0][2], rv3d->persmat[1][2], rv3d->persmat[2][2]);
-		mul_mat3_m4_v3(ob->obmat, vvec);
+		mul_transposed_mat3_m4_v3(ob->obmat, vvec);
 
 		x = -la->dist;
 		y = cosf(la->spotsize * 0.5f);




More information about the Bf-blender-cvs mailing list