summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-09 08:47:36 +0200
committerGitHub <noreply@github.com>2022-06-09 08:47:36 +0200
commitb13c41c33ffef7687ac743b66750105c0f5cd447 (patch)
tree7c7ed02b49566f97564c689417e3dd65a5ecb5f1
parent7e0c54e292f2813878d178bbb691a419ed6fb295 (diff)
parentd8f1ee66d774180ddc8960e45da332b6dae88355 (diff)
Merge pull request #61830 from XutaxKamay/fix-image-texture
Fix for regression of an ImageTexture being imported
-rw-r--r--scene/resources/texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 815343b044..8994bb5983 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -150,6 +150,7 @@ void ImageTexture::reload_from_file() {
bool ImageTexture::_set(const StringName &p_name, const Variant &p_value) {
if (p_name == "image") {
create_from_image(p_value);
+ return true;
}
return false;
}
@@ -157,6 +158,7 @@ bool ImageTexture::_set(const StringName &p_name, const Variant &p_value) {
bool ImageTexture::_get(const StringName &p_name, Variant &r_ret) const {
if (p_name == "image") {
r_ret = get_image();
+ return true;
}
return false;
}