Merge pull request #94147 from MovaUA/fixes/node-configuration-warning-dialog-text

Fixes/node configuration warning dialog text
This commit is contained in:
Rémi Verschelde 2024-07-11 00:27:39 +02:00
commit fbac9c54c9
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View File

@ -574,7 +574,7 @@ StringName AnimatedSprite2D::get_animation() const {
PackedStringArray AnimatedSprite2D::get_configuration_warnings() const { PackedStringArray AnimatedSprite2D::get_configuration_warnings() const {
PackedStringArray warnings = Node2D::get_configuration_warnings(); PackedStringArray warnings = Node2D::get_configuration_warnings();
if (frames.is_null()) { 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; return warnings;
} }

View File

@ -1435,7 +1435,7 @@ StringName AnimatedSprite3D::get_animation() const {
PackedStringArray AnimatedSprite3D::get_configuration_warnings() const { PackedStringArray AnimatedSprite3D::get_configuration_warnings() const {
PackedStringArray warnings = SpriteBase3D::get_configuration_warnings(); PackedStringArray warnings = SpriteBase3D::get_configuration_warnings();
if (frames.is_null()) { 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; return warnings;
} }