Fix scene node declaration.
This commit is contained in:
parent
f66c6ea6e9
commit
513d79a67c
@ -24,14 +24,7 @@ class Node:
|
|||||||
subnode.draw(time)
|
subnode.draw(time)
|
||||||
|
|
||||||
class SceneNode(Node):
|
class SceneNode(Node):
|
||||||
__slots__ = '_subnodes'
|
pass
|
||||||
|
|
||||||
def __init__(self, *subnodes):
|
|
||||||
Node.__init__(self, *subnodes)
|
|
||||||
self._subnodes = subnodes
|
|
||||||
|
|
||||||
def draw(self, time):
|
|
||||||
Node.draw(self, time)
|
|
||||||
|
|
||||||
class TextureNode(Node):
|
class TextureNode(Node):
|
||||||
__slots__ = '_textures'
|
__slots__ = '_textures'
|
||||||
|
Loading…
Reference in New Issue
Block a user