mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-07 21:18:12 +08:00
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:
@@ -119,7 +119,7 @@ impl MessageHandler<TransformLayerMessage, TransformLayerMessageContext<'_>> for
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !using_path_tool || !using_shape_tool {
|
if !using_path_tool {
|
||||||
self.pivot_gizmo.recalculate_transform(document);
|
self.pivot_gizmo.recalculate_transform(document);
|
||||||
*selected.pivot = self.pivot_gizmo.position(document);
|
*selected.pivot = self.pivot_gizmo.position(document);
|
||||||
self.local_pivot = document.metadata().document_to_viewport.inverse().transform_point2(*selected.pivot);
|
self.local_pivot = document.metadata().document_to_viewport.inverse().transform_point2(*selected.pivot);
|
||||||
|
|||||||
Reference in New Issue
Block a user