Correct own regression drawing lamp outline

This commit is contained in:
Campbell Barton
2014-04-30 04:52:31 +10:00
parent d71db08f6d
commit 27591458aa

View File

@@ -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);