Skip to content

Commit

Permalink
SpotLightHandle : Tooltip track cone, not cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Oct 17, 2023
1 parent 9d38030 commit b175482
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Improvements
- Spreadsheet :
- Popups for string cells and row names are now sized to fit their column.
- Added "Triple" and "Quadruple" width options to the spreadsheet row name popup menu.
- LightTool : Changed spot light tool tip location so that it follows the cone during drag.

1.3.4.0 (relative to 1.3.3.0)
=======
Expand Down
6 changes: 6 additions & 0 deletions src/GafferSceneUI/LightTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,12 @@ class SpotLightHandle : public LightToolHandle
return;
}

if( m_drag )
{
setTooltipPosition( V3f( 0, 0, -m_arcRadius ) * r );
return;
}

const Line3f rayLine(
V3f( 0 ),
V3f( 0, 0, m_visualiserScale * m_frustumScale * -10.f ) * r
Expand Down

0 comments on commit b175482

Please sign in to comment.