Hi there,
Two issues, not sure if I’m doing something wrong or have misunderstood how things work.
If I subclass DirectFrame, objects aren’t drawn.
class Test(DirectFrame): pass
a = Test(frameSize=(-1,1,-1,1), frameColor=(0,0,1,1), pos=(1,-1,-1))
b = DirectFrame(frameSize=(-1,1,-1,1), frameColor=(1,0,0,1), pos=(1,-1,1))
Only shows the red frame (the one that isn’t subclassed). Why is this?
Using getTightBounds() or getBounds() always returns 0
print b.getTightBounds()
print b.getBounds()
(Point3(0, 0, 0), Point3(0, 0, 0))
[0.0, 0.0, 0.0, 0.0]
How can I effectively get the frame’s boundaries?
Thanks in advance
Cheers