def empty_node(prefix, color=False): path = NodePath(prefix + '_path') node = GeomNode(prefix + '_node') path.attachNewNode(node) if color: path.setAttrib(ColorAttrib.makeVertex()) return (path, node)
def show(self, render): """ Reparents the root NodePath of this Map's World to the given NodePath. """ self.world.scene.setColorOff() self.world.scene.node().setAttrib(ColorAttrib.makeVertex()) self.world.scene.reparent_to(render)
def show(self, render): """ Reparents the root NodePath of this Map's World to the given NodePath. """ self.world.scene.setColorOff() self.world.scene.node().setAttrib(ColorAttrib.makeVertex()) self.world.scene.reparent_to(render)