Fix for ImageTexture imported
Someone apparently forgot to return true ... on ImageTexture::_set/_get
This commit is contained in:
parent
c09d830106
commit
d8f1ee66d7
|
@ -150,6 +150,7 @@ void ImageTexture::reload_from_file() {
|
||||||
bool ImageTexture::_set(const StringName &p_name, const Variant &p_value) {
|
bool ImageTexture::_set(const StringName &p_name, const Variant &p_value) {
|
||||||
if (p_name == "image") {
|
if (p_name == "image") {
|
||||||
create_from_image(p_value);
|
create_from_image(p_value);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
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 {
|
bool ImageTexture::_get(const StringName &p_name, Variant &r_ret) const {
|
||||||
if (p_name == "image") {
|
if (p_name == "image") {
|
||||||
r_ret = get_image();
|
r_ret = get_image();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue