Now pivot points also work for scaling.

This commit is contained in:
Relintai 2022-01-28 13:16:17 +01:00
parent 15404a82d9
commit fd0486ff7e

View File

@ -149,8 +149,11 @@ func set_handle(index: int, camera: Camera, point: Vector2):
_drag_op_accumulator += vs
var b : Basis = Basis().scaled(_drag_op_accumulator)
mul_all_selected_with_basis(b)
var t : Transform = Transform(Basis(), _drag_op_pivot)
t *= Transform(b, Vector3())
t *= Transform(Basis(), _drag_op_pivot).inverse()
mul_all_selected_with_transform(t)
apply()
redraw()