Skip to content

Commit

Permalink
Fix MMImage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Apr 19, 2024
1 parent 62694ba commit 0f2879c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/material_maker/nodes/simple/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ String MMImage::get_image_path() {

void MMImage::set_image_path(const String &val) {
image_path = val;
Ref<MMImage> img;
img.instance();

Ref<Image> img;

if (image_path != "") {
img.instance();
ImageLoader::load_image(image_path, img);
}

image->set_value(img);
image->set_default_value(img);
set_dirty(true);
}

Expand Down

0 comments on commit 0f2879c

Please sign in to comment.