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:
parent
2483832227
commit
929dbdb14c
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue