浏览代码

Merge pull request #55748 from cptchuckles/fix-sprite-validate-property

Rémi Verschelde 3 年之前
父节点
当前提交
dcca8aba4f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      scene/2d/animated_sprite_2d.cpp
  2. 1 1
      scene/3d/sprite_3d.cpp

+ 1 - 1
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;
 			}
 		}

+ 1 - 1
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;
 			}
 		}