Correct socket position

This commit is contained in:
Sandy 2019-10-18 21:38:04 +09:00 committed by GitHub
parent 5a9f14ea20
commit 92f6321f03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,12 +9,12 @@ class ReadJsonNode extends LogicNode {
}
override function run(from:Int) {
// Whether to use the cache
var useCache:Bool = inputs[1].get();
// Relative or absolute path to file
var file:String = inputs[2].get();
var file:String = inputs[1].get();
// Whether to use the cache
var useCache:Bool = inputs[2].get();
// Load the file asynchronously
if(!useCache && iron.data.Data.cachedBlobs.get(file) != null) iron.data.Data.cachedBlobs.remove(file);
iron.data.Data.getBlob(file, function(b:kha.Blob) {