mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Don't draw the rotation pivot if there is no angle.
This commit is contained in:
parent
ed6090bc36
commit
d4cb85f7a1
@ -92,7 +92,7 @@ HandleType TransformHandles::getHandleAtPoint(Editor* editor, const gfx::Point&
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the cursor is in the pivot
|
// Check if the cursor is in the pivot
|
||||||
if (getPivotHandleBounds(editor, transform, corners).contains(pt))
|
if (angle != 0 && getPivotHandleBounds(editor, transform, corners).contains(pt))
|
||||||
return PivotHandle;
|
return PivotHandle;
|
||||||
|
|
||||||
return NoHandle;
|
return NoHandle;
|
||||||
@ -140,7 +140,7 @@ void TransformHandles::drawHandles(Editor* editor, const gfx::Transformation& tr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw the pivot
|
// Draw the pivot
|
||||||
{
|
if (angle != 0) {
|
||||||
gfx::Rect pivotBounds = getPivotHandleBounds(editor, transform, corners);
|
gfx::Rect pivotBounds = getPivotHandleBounds(editor, transform, corners);
|
||||||
SkinTheme* theme = static_cast<SkinTheme*>(CurrentTheme::get());
|
SkinTheme* theme = static_cast<SkinTheme*>(CurrentTheme::get());
|
||||||
BITMAP* gfx = theme->get_part(PART_PIVOT_HANDLE);
|
BITMAP* gfx = theme->get_part(PART_PIVOT_HANDLE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user