From 88418c06c3bd79113c7cdde6f0499ba6b5d4faa2 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Fri, 19 Sep 2025 19:25:30 +0000 Subject: [PATCH] t3du - Fix World Errors --- .../Sources/leenkx/logicnode/SetWorldNode.hx | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/leenkx/Sources/leenkx/logicnode/SetWorldNode.hx b/leenkx/Sources/leenkx/logicnode/SetWorldNode.hx index cd1acaa..39e2c48 100644 --- a/leenkx/Sources/leenkx/logicnode/SetWorldNode.hx +++ b/leenkx/Sources/leenkx/logicnode/SetWorldNode.hx @@ -1,5 +1,7 @@ package leenkx.logicnode; +import iron.data.SceneFormat; + class SetWorldNode extends LogicNode { public function new(tree: LogicTree) { @@ -10,25 +12,6 @@ class SetWorldNode extends LogicNode { var world: String = inputs[1].get(); if (world != null){ - - //check if world shader data exists - var file: String = 'World_'+world+'_data'; - #if lnx_json - file += ".json"; - #elseif lnx_compress - file += ".lz4"; - #else - file += '.lnx'; - #end - - var exists: Bool = false; - - iron.data.Data.getBlob(file, function(b: kha.Blob) { - if (b != null) exists = true; - }); - - assert(Error, exists == true, "World must be either associated to a scene or have fake user"); - iron.Scene.active.raw.world_ref = world; var npath = leenkx.renderpath.RenderPathCreator.get(); npath.loadShader("shader_datas/World_" + world + "/World_" + world);