summaryrefslogtreecommitdiff
path: root/scene/resources/animation.h
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <fire@users.noreply.github.com>2021-08-24 19:29:02 -0700
committerGitHub <noreply@github.com>2021-08-24 19:29:02 -0700
commit24f562bd1e1ea5b7b4a5d2371729b97984bee460 (patch)
tree6e041e7c0ccc7cc9db48f7150a795a06072361d6 /scene/resources/animation.h
parentc89a5fb8be579936ea0b56bde520133cfa7664ae (diff)
parentffe54af0db209fb8c2dfd22c71c617fe92975590 (diff)
Merge pull request #52024 from V-Sekai/anim-length
Calculate proper animation length.
Diffstat (limited to 'scene/resources/animation.h')
-rw-r--r--scene/resources/animation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/animation.h b/scene/resources/animation.h
index 6227f6967f..9a410bd566 100644
--- a/scene/resources/animation.h
+++ b/scene/resources/animation.h
@@ -92,6 +92,9 @@ private:
Vector3 scale;
};
+ // Not necessarily the same size as Transform3D. The amount of numbers in Animation::Key and TransformKey.
+ const int32_t TRANSFORM_TRACK_SIZE = 12;
+
/* TRANSFORM TRACK */
struct TransformTrack : public Track {