Merge pull request #61830 from XutaxKamay/fix-image-texture
Fix for regression of an ImageTexture being imported
This commit is contained in:
commit
b13c41c33f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue