4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-14 22:36:52 +00:00
If we don't reference the SceneNode from each SceneObject, we can't get
the SceneNode from an ObjInterface. For some strange reason, plClient
overrides the plDrawableSpans SceneNode at runtime. This caused the DSpan
to be removed from all nodes.... :/
This commit is contained in:
2014-07-10 00:04:54 -04:00
parent fa6c9f890e
commit 8a8c5fdeb1

View File

@ -83,6 +83,7 @@ class ExportManager:
if node: # All objects must be in the scene node if node: # All objects must be in the scene node
if isinstance(pl, plSceneObject): if isinstance(pl, plSceneObject):
node.addSceneObject(pl.key) node.addSceneObject(pl.key)
pl.sceneNode = node.key
elif pl.ClassIndex() in _pool_types: elif pl.ClassIndex() in _pool_types:
node.addPoolObject(pl.key) node.addPoolObject(pl.key)