Commit 830e0a0f authored by Christian Winter's avatar Christian Winter

scaling prefab instances with axis lock better but still wrong for non-90-degree rotations...

parent d84669ba
Pipeline #4816172 (#) passed with stage
...@@ -78,7 +78,11 @@ class LineManipulator { ...@@ -78,7 +78,11 @@ class LineManipulator {
for (let instance of Selection.data.prefabInstances) { for (let instance of Selection.data.prefabInstances) {
instance.transform.position = this.scalePoint(instance.transform.position, center, scaleVector); instance.transform.position = this.scalePoint(instance.transform.position, center, scaleVector);
if (!Preferences.onlyTransformPrefabInstancePosition) if (!Preferences.onlyTransformPrefabInstancePosition)
instance.transform.scale = instance.transform.scale.multiplyVector(scaleVector); {
instance.transform.scale = instance.transform.scale.rotateAround(Vector2.zero, -instance.transform.rotation);
instance.transform.scale = this.scalePoint(instance.transform.scale, Vector2.zero, scaleVector);
instance.transform.scale = instance.transform.scale.rotateAround(Vector2.zero, instance.transform.rotation);
}
} }
Renderer.redraw(); Renderer.redraw();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment