diff --git a/leenkx/Sources/iron/Scene.hx b/leenkx/Sources/iron/Scene.hx index 67e9cb9..c0f1869 100644 --- a/leenkx/Sources/iron/Scene.hx +++ b/leenkx/Sources/iron/Scene.hx @@ -887,7 +887,7 @@ class Scene { var ptype: String = t.props[i * 3 + 1]; var pval: Dynamic = t.props[i * 3 + 2]; - if (StringTools.endsWith(ptype, "Object") && pval != "") { + if (StringTools.endsWith(ptype, "Object") && pval != "" && pval != null) { Reflect.setProperty(traitInst, pname, Scene.active.getChild(pval)); } else if (ptype == "TSceneFormat" && pval != "") { Data.getSceneRaw(pval, function (r: TSceneFormat) {