[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53254] trunk/blender/source/blender/ editors/space_view3d/drawobject.c: "Fix" for [#33524] Interaction of "Size" & "Distance" sliders in "Spot Lamp" panel with "3D view"
Bastien Montagne
montagne29 at wanadoo.fr
Fri Dec 21 21:25:03 CET 2012
Revision: 53254
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53254
Author: mont29
Date: 2012-12-21 20:25:02 +0000 (Fri, 21 Dec 2012)
Log Message:
-----------
"Fix" for [#33524] Interaction of "Size" & "Distance" sliders in "Spot Lamp" panel with "3D view"
Simply added a dashed line materializing the center/direction of the spot, and ending at Distance from it (exactly as for the Area lamp). We already had something similar for buffered shadow spots (to materialize start/end clipping), and imho it's also quite useful to see *where* points a spot, when using wide spots!
Very easy to revert anyway.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_view3d/drawobject.c
Modified: trunk/blender/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawobject.c 2012-12-21 19:20:24 UTC (rev 53253)
+++ trunk/blender/source/blender/editors/space_view3d/drawobject.c 2012-12-21 20:25:02 UTC (rev 53254)
@@ -1286,6 +1286,13 @@
glVertex3fv(vvec_clip);
glEnd();
}
+ /* Else, draw spot direction (using distance as end limit, same as for Area lamp). */
+ else {
+ glBegin(GL_LINE_STRIP);
+ glVertex3f(0.0, 0.0, -circrad);
+ glVertex3f(0.0, 0.0, -la->dist);
+ glEnd();
+ }
}
else if (ELEM(la->type, LA_HEMI, LA_SUN)) {
More information about the Bf-blender-cvs
mailing list