Fix SetSceneNode when using json export

This commit is contained in:
Moritz Brückner 2020-07-07 21:06:24 +02:00
parent 78aec97c95
commit 156030075a

View file

@ -13,6 +13,10 @@ class SetSceneNode extends LogicNode {
override function run(from: Int) {
var sceneName: String = inputs[1].get();
#if arm_json
sceneName += ".json";
#end
iron.Scene.setActive(sceneName, function(o: iron.object.Object) {
root = o;
runOutput(0);