mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Drawable: Fix clobbering Component transform when setDrawableTransform() isn't called
This commit is contained in:
parent
351e8e8916
commit
9005e2fda8
2 changed files with 6 additions and 0 deletions
|
|
@ -163,6 +163,9 @@ void Drawable::setDrawableTransform (const AffineTransform& transform)
|
|||
|
||||
void Drawable::updateTransform()
|
||||
{
|
||||
if (drawableTransform.isIdentity())
|
||||
return;
|
||||
|
||||
const auto transformationOrigin = originRelativeToComponent + getPosition();
|
||||
setTransform (AffineTransform::translation (transformationOrigin * (-1))
|
||||
.followedBy (drawableTransform)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue