diff options
Diffstat (limited to 'scene/animation/tween.cpp')
-rw-r--r-- | scene/animation/tween.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index 2030808724..5e843d3027 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -573,9 +573,9 @@ Variant Tween::_run_equation(InterpolateData &p_data) { case Variant::TRANSFORM: { // Get the transforms for the initial and delta values - Transform i = initial_val; - Transform d = delta_val; - Transform r; + Transform3D i = initial_val; + Transform3D d = delta_val; + Transform3D r; // Execute the equation for each of the transforms and their origin and mutate the r transform // This uses the custom APPLY_EQUATION macro defined above @@ -1231,9 +1231,9 @@ bool Tween::_calc_delta_val(const Variant &p_initial_val, const Variant &p_final case Variant::TRANSFORM: { // Build a new transform which is the difference between the initial and final values - Transform i = initial_val; - Transform f = final_val; - Transform d; + Transform3D i = initial_val; + Transform3D f = final_val; + Transform3D d; d.set(f.basis.elements[0][0] - i.basis.elements[0][0], f.basis.elements[0][1] - i.basis.elements[0][1], f.basis.elements[0][2] - i.basis.elements[0][2], |