Browse Source

Fix #3

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.... :/
pull/6/head
Adam Johnson 11 years ago
parent
commit
8a8c5fdeb1
  1. 1
      korman/exporter/manager.py

1
korman/exporter/manager.py

@ -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)

Loading…
Cancel
Save