mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-20 21:07:17 +01:00
Now pivot points also work for scaling.
This commit is contained in:
parent
15404a82d9
commit
fd0486ff7e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user