[x3d-public] x3d.py problem
Andreas Plesch
andreasplesch at gmail.com
Tue May 12 14:16:19 PDT 2020
Hi,
after some debugging I discovered another issue with x3d.py. It can be
boiled down t o a few lines of code:
import x3d.x3d as x
my_scene = x.Scene()
group = x.Group()
my_scene.children.append(group)
print(my_scene.XML())
=> output
=> <Scene>
=> <Group/>
=> </Scene>
my_other_scene = x.Scene()
print(my_other_scene.XML())
=> output
=> <Scene>
=> <Group/>
=> </Scene>
I think my_other_scene should be empty but remembers the content of the
first scene.
Can you reproduce that ?
On the other hand this works (in a new session):
my_scene = x.Scene( children = [x.Group()] )
print(my_scene.XML())
=> output
=> <Scene>
=> <Group/>
=> </Scene>
my_other_scene = x.Scene()
print(my_other_scene.XML())
=> output
=> <Scene>
=> </Scene>
--
Andreas Plesch
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200512/e8daddcb/attachment.html>
More information about the x3d-public
mailing list