karlis 2023-03-14 15:03:03 +08:00
commit eab8d7aeec
1 changed files with 2 additions and 2 deletions

View File

@ -88,11 +88,11 @@ void LayerWrapper::SimpleProperty::apply(PixelPath&cache)
double centerY = cache.getBoundingRect().center().y();
//qDebug() << name << " " << cache.boundingRect().center();
//qDebug() << name << " " << cache.boundingRect();
transform.translate(-centerX, -centerY);
transform.translate(centerX, centerY);
transform.translate(offset.x(), offset.y());
transform.rotate(rotation);
transform.scale(scale.x(), scale.y());
transform.translate(centerX, centerY);
transform.translate(-centerX, -centerY);
cache = cache.trans(transform);
}