summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gollnick <jonathan.gollnick@gmail.com>2021-12-08 16:44:07 -0600
committerGrendel <jcg@grendel.world>2021-12-08 16:59:11 -0600
commit0c14b930ef14d23df0ede949b8cd51837dcb7dc0 (patch)
tree5105ba81fbc4bc6e9a088742ccd716af038d1fe7
parentf1e3c87244f18ab1a507b6e3637c34b2d49c1dc6 (diff)
downloadredot-engine-0c14b930ef14d23df0ede949b8cd51837dcb7dc0.tar.gz
Fix _validate_property on AnimatedSprite 2D and 3D
-rw-r--r--scene/2d/animated_sprite_2d.cpp2
-rw-r--r--scene/3d/sprite_3d.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/animated_sprite_2d.cpp b/scene/2d/animated_sprite_2d.cpp
index fad4784d51..98aa2ad4cc 100644
--- a/scene/2d/animated_sprite_2d.cpp
+++ b/scene/2d/animated_sprite_2d.cpp
@@ -122,7 +122,7 @@ void AnimatedSprite2D::_validate_property(PropertyInfo &property) const {
}
property.hint_string += String(E->get());
- if (animation == E) {
+ if (animation == E->get()) {
current_found = true;
}
}
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp
index 197a5c0f27..3eabc6b562 100644
--- a/scene/3d/sprite_3d.cpp
+++ b/scene/3d/sprite_3d.cpp
@@ -998,7 +998,7 @@ void AnimatedSprite3D::_validate_property(PropertyInfo &property) const {
}
property.hint_string += String(E->get());
- if (animation == E) {
+ if (animation == E->get()) {
current_found = true;
}
}