summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2019-10-22 19:01:23 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2019-10-22 20:12:55 +0200
commit6c0ef9f729424e9c11aa475ecee5f8c07d0913a3 (patch)
treeba37bb6fe070ef4ebd3e438c1ca13cb1cfd75866 /scene/3d
parent365558b8b7aed930c219044176c886eaaf8d752d (diff)
Auto-increment frame_coords when keying
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/sprite_3d.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp
index a8d2f4d415..adcd80b0ab 100644
--- a/scene/3d/sprite_3d.cpp
+++ b/scene/3d/sprite_3d.cpp
@@ -662,6 +662,10 @@ void Sprite3D::_validate_property(PropertyInfo &property) const {
property.hint_string = "0," + itos(vframes * hframes - 1) + ",1";
property.usage |= PROPERTY_USAGE_KEYING_INCREMENTS;
}
+
+ if (property.name == "frame_coords") {
+ property.usage |= PROPERTY_USAGE_KEYING_INCREMENTS;
+ }
}
void Sprite3D::_bind_methods() {