mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-07 04:11:51 -04:00
12 lines
290 B
Python
12 lines
290 B
Python
from direct.stdpy.pickle import dumps, loads
|
|
|
|
|
|
def test_reduce_persist():
|
|
from panda3d.core import NodePath
|
|
|
|
parent = NodePath("parent")
|
|
child = parent.attach_new_node("child")
|
|
|
|
parent2, child2 = loads(dumps([parent, child]))
|
|
assert tuple(parent2.children) == (child2,)
|