|
@@ -132,7 +132,11 @@ func (n *Node) BoundingBox() math32.Box3 {
|
|
|
func (n *Node) Render(gs *gls.GLS) {}
|
|
func (n *Node) Render(gs *gls.GLS) {}
|
|
|
|
|
|
|
|
// Dispose satisfies the INode interface.
|
|
// Dispose satisfies the INode interface.
|
|
|
-func (n *Node) Dispose() {}
|
|
|
|
|
|
|
+func (n *Node) Dispose() {
|
|
|
|
|
+ for _, child := range n.children {
|
|
|
|
|
+ child.Dispose()
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// Clone clones the Node and satisfies the INode interface.
|
|
// Clone clones the Node and satisfies the INode interface.
|
|
|
func (n *Node) Clone() INode {
|
|
func (n *Node) Clone() INode {
|