Skip to content

Commit

Permalink
Merge pull request #94147 from MovaUA/fixes/node-configuration-warnin…
Browse files Browse the repository at this point in the history
…g-dialog-text

Fixes/node configuration warning dialog text
  • Loading branch information
akien-mga committed Jul 10, 2024
2 parents f5bb5db + 32369d2 commit fbac9c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scene/2d/animated_sprite_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ StringName AnimatedSprite2D::get_animation() const {
PackedStringArray AnimatedSprite2D::get_configuration_warnings() const {
PackedStringArray warnings = Node2D::get_configuration_warnings();
if (frames.is_null()) {
warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Frames\" property in order for AnimatedSprite2D to display frames."));
warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Sprite Frames\" property in order for AnimatedSprite2D to display frames."));
}
return warnings;
}
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/sprite_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@ StringName AnimatedSprite3D::get_animation() const {
PackedStringArray AnimatedSprite3D::get_configuration_warnings() const {
PackedStringArray warnings = SpriteBase3D::get_configuration_warnings();
if (frames.is_null()) {
warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Frames\" property in order for AnimatedSprite3D to display frames."));
warnings.push_back(RTR("A SpriteFrames resource must be created or set in the \"Sprite Frames\" property in order for AnimatedSprite3D to display frames."));
}
return warnings;
}
Expand Down

0 comments on commit fbac9c5

Please sign in to comment.