Merge pull request #94147 from MovaUA/fixes/node-configuration-warning-dialog-text
Fixes/node configuration warning dialog text
This commit is contained in:
commit
fbac9c54c9
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue