We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 305078c commit 95e2621Copy full SHA for 95e2621
1 file changed
tests/test_load.py
@@ -1,3 +1,4 @@
1
+from direct.actor.Actor import Actor
2
import panda3d.core as p3d
3
import pytest #pylint:disable=wrong-import-order
4
@@ -26,3 +27,12 @@ def test_load_prc(showbase, modelpath):
26
27
scene = showbase.loader.load_model(modelpath, noCache=True)
28
p3d.unload_prc_file(page)
29
assert scene.find('**/+BulletRigidBodyNode')
30
+
31
+def test_load_actor(modelroot):
32
+ actor = Actor(p3d.Filename(modelroot, 'Fox.glb'))
33
+ assert actor
34
35
+ print(actor.getAnimNames())
36
+ assert 'Walk' in actor.getAnimNames()
37
38
+ actor.play('Walk')
0 commit comments