Fix a regression with G/R/S in the Path tool applying to the whole object instead of the selected points (#3164)

unify Shape Tool and Select Tool pivot handling
This commit is contained in:
0SlowPoke0 2025-09-12 01:23:30 +05:30 committed by GitHub
parent 2483832227
commit 929dbdb14c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ impl MessageHandler<TransformLayerMessage, TransformLayerMessageContext<'_>> for
return;
}
if !using_path_tool || !using_shape_tool {
if !using_path_tool {
self.pivot_gizmo.recalculate_transform(document);
*selected.pivot = self.pivot_gizmo.position(document);
self.local_pivot = document.metadata().document_to_viewport.inverse().transform_point2(*selected.pivot);