Эх сурвалжийг харах

add test case for parent_bone

Jason0214 7 жил өмнө
parent
commit
3fb57328fe

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 7 - 0
tests/reference-exports/armature_bone_attachment.escn


+ 2 - 0
tests/reference-exports/armature_with_mesh.escn

@@ -29,11 +29,13 @@ bones/0/parent = -1
 bones/0/rest = Transform(1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1.0, 0.0, 0.038694, 0.252999, 0.0877165)
 bones/0/pose = Transform(1.0, 0.0, 0.0, 0.0, 0.999905, 0.0137515, 0.0, -0.0137515, 0.999905, 0.0, 0.0, 0.0)
 bones/0/enabled = true
+bones/0/bound_children = []
 bones/1/name = "Bone.002"
 bones/1/parent = 0
 bones/1/rest = Transform(0.0349042, 0.99939, 0.000512928, -0.721447, 0.0248417, 0.692024, 0.691589, -0.0245245, 0.721874, 0.0, 0.0, -1.22688)
 bones/1/pose = Transform(0.998669, -0.00219534, 0.0515305, 0.00228814, 0.999996, -0.0017419, -0.0515265, 0.00185749, 0.99867, 0.0, 0.0, 0.0)
 bones/1/enabled = true
+bones/1/bound_children = []
 
 [node name="Suzanne" type="MeshInstance" parent="Armature001"]
 

+ 6 - 0
tests/reference-exports/armature_with_physics.escn

@@ -50,31 +50,37 @@ bones/0/parent = -1
 bones/0/rest = Transform(1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1.0, 0.0, 0.0, -0.1, 0.0)
 bones/0/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/0/enabled = true
+bones/0/bound_children = []
 bones/1/name = "Bone.001"
 bones/1/parent = 0
 bones/1/rest = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, -1.3)
 bones/1/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/1/enabled = true
+bones/1/bound_children = []
 bones/2/name = "Bone.002"
 bones/2/parent = 0
 bones/2/rest = Transform(0.0, 0.0, 1.0, -1.0, -4.37114e-08, 0.0, 4.37114e-08, -1.0, 0.0, 0.0, 0.0, -1.3)
 bones/2/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/2/enabled = true
+bones/2/bound_children = []
 bones/3/name = "Bone.003"
 bones/3/parent = 0
 bones/3/rest = Transform(0.0, 0.0, -1.0, 1.0, -4.37114e-08, 0.0, -4.37114e-08, -1.0, 0.0, 0.0, 0.0, -1.3)
 bones/3/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/3/enabled = true
+bones/3/bound_children = []
 bones/4/name = "Bone.004"
 bones/4/parent = 0
 bones/4/rest = Transform(-8.9407e-08, -0.393919, 0.919145, -1.0, 7.54979e-08, 0.0, -2.98023e-08, -0.919145, -0.393919, 0.0, 0.0, 0.0)
 bones/4/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/4/enabled = true
+bones/4/bound_children = []
 bones/5/name = "Bone.005"
 bones/5/parent = 0
 bones/5/rest = Transform(-8.9407e-08, 0.393919, -0.919145, 1.0, 7.54979e-08, 0.0, 2.98023e-08, -0.919145, -0.393919, 0.0, 0.0, 0.0)
 bones/5/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/5/enabled = true
+bones/5/bound_children = []
 
 [node name="Mesh" type="MeshInstance" parent="PhysicsPhysics/Rig"]
 

+ 2 - 0
tests/reference-exports/armature_with_pose.escn

@@ -29,11 +29,13 @@ bones/0/parent = -1
 bones/0/rest = Transform(1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1.0, 0.0, 0.038694, 0.252999, 0.0877165)
 bones/0/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/0/enabled = true
+bones/0/bound_children = []
 bones/1/name = "Bone.002"
 bones/1/parent = 0
 bones/1/rest = Transform(0.0349042, 0.99939, 0.000512928, -0.721447, 0.0248417, 0.692024, 0.691589, -0.0245245, 0.721874, 0.0, 0.0, -1.22688)
 bones/1/pose = Transform(0.918444, -0.124194, -0.375548, 0.210026, 0.957654, 0.196946, 0.335186, -0.259759, 0.905636, 0.0, 0.0, 0.0)
 bones/1/enabled = true
+bones/1/bound_children = []
 
 [node name="Suzanne" type="MeshInstance" parent="Armature001"]
 

+ 4 - 0
tests/reference-exports/just_armature.escn

@@ -12,21 +12,25 @@ bones/0/parent = -1
 bones/0/rest = Transform(1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0)
 bones/0/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/0/enabled = true
+bones/0/bound_children = []
 bones/1/name = "Bone.001"
 bones/1/parent = 0
 bones/1/rest = Transform(-1.0, 8.74228e-08, 0.0, 0.0, 0.0, -1.0, -8.74228e-08, -1.0, 0.0, 0.0, 0.0, -1.0)
 bones/1/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/1/enabled = true
+bones/1/bound_children = []
 bones/2/name = "Bone.002"
 bones/2/parent = 1
 bones/2/rest = Transform(-1.0, -6.3573e-08, -8.74228e-08, 8.74228e-08, -2.08501e-15, -1.0, 6.3573e-08, -1.0, 0.0, 0.0, 0.0, -1.0)
 bones/2/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/2/enabled = true
+bones/2/bound_children = []
 bones/3/name = "Bone.003"
 bones/3/parent = 0
 bones/3/rest = Transform(0.0, 0.0, -1.0, 1.0, -4.37114e-08, 0.0, -4.37114e-08, -1.0, 0.0, 0.0, 0.0, -1.0)
 bones/3/pose = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
 bones/3/enabled = true
+bones/3/bound_children = []
 
 [node name="Lamp" type="OmniLight" parent="."]
 

BIN
tests/scenes/armature_bone_attachment.blend


+ 1 - 0
tests/scenes/export_blends.py

@@ -18,6 +18,7 @@ def export_escn(out_file):
         use_active_layers=False,
         use_export_selected=False,
         use_mesh_modifiers=True,
+        export_parent_bone_constraint=True,
         material_search_paths = 'PROJECT_DIR'
     )
 

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно