diff options
author | Kamay Xutax <admin@xutaxkamay.com> | 2022-06-09 00:06:11 +0200 |
---|---|---|
committer | Kamay Xutax <admin@xutaxkamay.com> | 2022-06-09 00:08:07 +0200 |
commit | d8f1ee66d774180ddc8960e45da332b6dae88355 (patch) | |
tree | 536d7843782f33f5510a93c17b721b8a0144f110 /scene | |
parent | c09d830106a7b1e48d4cff6b818cb3979d3bde21 (diff) |
Fix for ImageTexture imported
Someone apparently forgot to return true ...
on ImageTexture::_set/_get
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/texture.cpp | 2 |
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; } |