diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-13 14:44:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 14:44:50 +0200 |
commit | ef7974f3d9d51865aac83bfdd2876f39061b87fa (patch) | |
tree | fe701efa270126f1598db6198f3d0f85ee76cf50 /scene/gui | |
parent | aa51911c690141846f0c54c7e6c23d29cd884e8f (diff) | |
parent | 19afaa0203fbe5638b9be35f7e43bdba3b8a3641 (diff) |
Merge pull request #49526 from Chaosus/fix_textureregion_errors
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/nine_patch_rect.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/nine_patch_rect.cpp b/scene/gui/nine_patch_rect.cpp index 29a38ad5e3..8bf25ac915 100644 --- a/scene/gui/nine_patch_rect.cpp +++ b/scene/gui/nine_patch_rect.cpp @@ -30,6 +30,7 @@ #include "nine_patch_rect.h" +#include "scene/scene_string_names.h" #include "servers/rendering_server.h" void NinePatchRect::_notification(int p_what) { @@ -97,7 +98,7 @@ void NinePatchRect::set_texture(const Ref<Texture2D> &p_tex) { texture->set_flags(texture->get_flags()&(~Texture::FLAG_REPEAT)); //remove repeat from texture, it looks bad in sprites */ minimum_size_changed(); - emit_signal("texture_changed"); + emit_signal(SceneStringNames::get_singleton()->texture_changed); } Ref<Texture2D> NinePatchRect::get_texture() const { |