get image from node
This commit is contained in:
parent
3ff60f4b16
commit
61b3bc8269
|
@ -28,7 +28,12 @@ class SetMaterialImageParamNode extends LogicNode {
|
|||
object = Scene.active.root;
|
||||
}
|
||||
|
||||
manager.setTextureValue(mat, object, inputs[3].get(), inputs[4].get());
|
||||
var img = inputs[4].get();
|
||||
if(img == null) return;
|
||||
iron.data.Data.getImage(img, function(image: kha.Image) {
|
||||
manager.setTextureValue(mat, object, inputs[3].get(), image);
|
||||
});
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue