|
|
@@ -47,8 +47,9 @@ class OnscreenGeom(DirectObject, NodePath):
|
|
|
"""
|
|
|
# We ARE a node path. Initially, we're an empty node path.
|
|
|
NodePath.__init__(self)
|
|
|
- if parent == None:
|
|
|
- parent = aspect2d
|
|
|
+ if parent is None:
|
|
|
+ from direct.showbase import ShowBaseGlobal
|
|
|
+ parent = ShowBaseGlobal.aspect2d
|
|
|
|
|
|
self.setGeom(geom, parent = parent, sort = sort, color = color)
|
|
|
|