summaryrefslogtreecommitdiffstats
path: root/scene/resources/animation.h
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2020-12-20 11:46:44 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2020-12-20 12:45:08 +0100
commitb7367ac426659e02facc7c828e57aa687cce957c (patch)
tree09fe174ea963c2745f8b268454acb5a39dab7de9 /scene/resources/animation.h
parent1f52782bbb417e559be9317cd56acb37b6d15a9a (diff)
downloadredot-engine-b7367ac426659e02facc7c828e57aa687cce957c.tar.gz
Add animation reset track feature
As a bonus, to have consistency between use Beziers and create insert tracks, use Beziers also gets a default via editor settings that is used when the confirmation dialog is disabled, instead of just falling back to creating non-Bezier tracks.
Diffstat (limited to 'scene/resources/animation.h')
-rw-r--r--scene/resources/animation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/animation.h b/scene/resources/animation.h
index 060d1fe2d9..650a54ebfc 100644
--- a/scene/resources/animation.h
+++ b/scene/resources/animation.h
@@ -33,6 +33,8 @@
#include "core/io/resource.h"
+#define ANIM_MIN_LENGTH 0.001
+
class Animation : public Resource {
GDCLASS(Animation, Resource);
RES_BASE_EXTENSION("anim");