diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-17 20:04:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-17 20:04:29 +0100 |
commit | 0968c8d2f65f7ac6e0d6b3718ee1028b229b3353 (patch) | |
tree | d2265ef6e3273658171104abe9b215f961d17495 /scene/animation | |
parent | 1feeb3e1c8406caf5497d5fcb40820cbb2d0d165 (diff) | |
parent | d28763a4c1792dc00fde3d151eaea54f9cf2b8a9 (diff) |
Merge pull request #12982 from tagcup/aabb_rename
Rename Rect3 to AABB.
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/tween.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index e0508cf147..40d06dc756 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -416,10 +416,10 @@ Variant Tween::_run_equation(InterpolateData &p_data) { result = r; } break; - case Variant::RECT3: { - Rect3 i = initial_val; - Rect3 d = delta_val; - Rect3 r; + case Variant::AABB: { + AABB i = initial_val; + AABB d = delta_val; + AABB r; APPLY_EQUATION(position.x); APPLY_EQUATION(position.y); @@ -956,10 +956,10 @@ bool Tween::_calc_delta_val(const Variant &p_initial_val, const Variant &p_final case Variant::QUAT: delta_val = final_val.operator Quat() - initial_val.operator Quat(); break; - case Variant::RECT3: { - Rect3 i = initial_val; - Rect3 f = final_val; - delta_val = Rect3(f.position - i.position, f.size - i.size); + case Variant::AABB: { + AABB i = initial_val; + AABB f = final_val; + delta_val = AABB(f.position - i.position, f.size - i.size); } break; case Variant::TRANSFORM: { Transform i = initial_val; |