summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-02 16:23:33 +0100
committerGitHub <noreply@github.com>2021-12-02 16:23:33 +0100
commitced07100d7695d71e6e2a81298979dd763cc16ab (patch)
tree08b3a5c0cbf10cc0d6d9d76e850f1fe52dc5a4c6 /scene/3d
parent837e6bdf1859d2054b31730fb71c636f681300da (diff)
parent1ade29147b9b9d8dd8f2a1ffdf80ec4f4423a5bd (diff)
Merge pull request #53287 from Chaosus/sprite3d_fix
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/sprite_3d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp
index 90af70e7c2..197a5c0f27 100644
--- a/scene/3d/sprite_3d.cpp
+++ b/scene/3d/sprite_3d.cpp
@@ -625,6 +625,7 @@ void Sprite3D::set_texture(const Ref<Texture2D> &p_texture) {
texture->connect(CoreStringNames::get_singleton()->changed, Callable(this, "_queue_update"));
}
_queue_update();
+ emit_signal(SceneStringNames::get_singleton()->texture_changed);
}
Ref<Texture2D> Sprite3D::get_texture() const {
@@ -780,6 +781,7 @@ void Sprite3D::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::RECT2, "region_rect"), "set_region_rect", "get_region_rect");
ADD_SIGNAL(MethodInfo("frame_changed"));
+ ADD_SIGNAL(MethodInfo("texture_changed"));
}
Sprite3D::Sprite3D() {