godot icon indicating copy to clipboard operation
godot copied to clipboard

Fix `Animation::subtract_variant` for affine transforms

Open kleonc opened this issue 1 year ago • 0 comments

Transform2D::inverse/Transform3D::inverse which were used in Animation::subtract_variant work only for rotation + translation, don't work for scale, skew, etc.

This resulted in e.g. PropertyTweener incorrectly calculating the delta for affine transforms: https://github.com/godotengine/godot/blob/b8ed596769d2114797015833ce86f86ee872ecfa/scene/animation/tween.cpp#L557

Fixes #79242.

kleonc avatar Jul 10 '23 11:07 kleonc