Explorar o código

Merge branch 'file_structure'

Geoffrey Irons %!s(int64=7) %!d(string=hai) anos
pai
achega
96e3869047
Modificáronse 62 ficheiros con 10 adicións e 11 borrados
  1. 1 1
      .gitignore
  2. 7 8
      Makefile
  3. 2 2
      tests/export_test_scenes.py
  4. 0 0
      tests/godot_project/default_env.tres
  5. 0 0
      tests/godot_project/icon.png
  6. 0 0
      tests/godot_project/multi_uv_tester.tres
  7. 0 0
      tests/godot_project/project.godot
  8. 0 0
      tests/godot_project/uv_tester_material.tres
  9. 0 0
      tests/godot_project/uvtester.jpg
  10. 0 0
      tests/godot_project/uvtester_normals.jpg
  11. 0 0
      tests/godot_project/viewers/just_mesh.tscn
  12. 0 0
      tests/godot_project/viewers/tangent_test.tscn
  13. 0 0
      tests/godot_project/viewers/uv_testing.tscn
  14. 0 0
      tests/godot_project/viewers/vertex_color.tscn
  15. 0 0
      tests/reference_exports/animation_bone_transform.escn
  16. 0 0
      tests/reference_exports/animation_object_transform.escn
  17. 0 0
      tests/reference_exports/animation_parented_objects.escn
  18. 0 0
      tests/reference_exports/animation_rotation_euler.escn
  19. 0 0
      tests/reference_exports/armature_bone_attachment.escn
  20. 0 0
      tests/reference_exports/armature_with_mesh.escn
  21. 0 0
      tests/reference_exports/armature_with_other_vertex_groups.escn
  22. 0 0
      tests/reference_exports/armature_with_physics.escn
  23. 0 0
      tests/reference_exports/armature_with_pose.escn
  24. 0 0
      tests/reference_exports/duplicate_name.escn
  25. 0 0
      tests/reference_exports/just_armature.escn
  26. 0 0
      tests/reference_exports/just_cameras.escn
  27. 0 0
      tests/reference_exports/just_mesh.escn
  28. 0 0
      tests/reference_exports/just_point_lights.escn
  29. 0 0
      tests/reference_exports/just_shapekey.escn
  30. 0 0
      tests/reference_exports/just_spot_lights.escn
  31. 0 0
      tests/reference_exports/material_search.escn
  32. 0 0
      tests/reference_exports/parented_meshes.escn
  33. 0 0
      tests/reference_exports/physics.escn
  34. 0 0
      tests/reference_exports/shapekey_with_multi_surface.escn
  35. 0 0
      tests/reference_exports/simple_materials.escn
  36. 0 0
      tests/reference_exports/tangent_test.escn
  37. 0 0
      tests/reference_exports/uv_testing.escn
  38. 0 0
      tests/reference_exports/vertex_color.escn
  39. 0 0
      tests/test_scenes/animation_bone_transform.blend
  40. 0 0
      tests/test_scenes/animation_object_transform.blend
  41. 0 0
      tests/test_scenes/animation_parented_objects.blend
  42. 0 0
      tests/test_scenes/animation_rotation_euler.blend
  43. 0 0
      tests/test_scenes/armature_bone_attachment.blend
  44. 0 0
      tests/test_scenes/armature_with_mesh.blend
  45. 0 0
      tests/test_scenes/armature_with_other_vertex_groups.blend
  46. 0 0
      tests/test_scenes/armature_with_physics.blend
  47. 0 0
      tests/test_scenes/armature_with_pose.blend
  48. 0 0
      tests/test_scenes/duplicate_name.blend
  49. 0 0
      tests/test_scenes/just_armature.blend
  50. 0 0
      tests/test_scenes/just_cameras.blend
  51. 0 0
      tests/test_scenes/just_mesh.blend
  52. 0 0
      tests/test_scenes/just_point_lights.blend
  53. 0 0
      tests/test_scenes/just_shapekey.blend
  54. 0 0
      tests/test_scenes/just_spot_lights.blend
  55. 0 0
      tests/test_scenes/material_search.blend
  56. 0 0
      tests/test_scenes/parented_meshes.blend
  57. 0 0
      tests/test_scenes/physics.blend
  58. 0 0
      tests/test_scenes/shapekey_with_multi_surface.blend
  59. 0 0
      tests/test_scenes/simple_materials.blend
  60. 0 0
      tests/test_scenes/tangent_test.blend
  61. 0 0
      tests/test_scenes/uv_testing.blend
  62. 0 0
      tests/test_scenes/vertex_color.blend

+ 1 - 1
.gitignore

@@ -2,7 +2,7 @@
 __pycache__
 
 *.blend[0-9]
-tests/exports/*.escn
+tests/godot_project/exports/*.escn
 
 .import 
 *.import

+ 7 - 8
Makefile

@@ -7,16 +7,15 @@ GODOT = godot
 
 pylint:
 	$(PYLINT) io_scene_godot
-	$(PYLINT) io_scene_godot
 
 pep8:
 	$(PEP8) io_scene_godot
 
 
 export-blends:
-	mkdir -p ./tests/exports/
-	rm -rf ./tests/.import  # Ensure we don't have any hangover data
-	$(BLENDER) -b --python ./tests/scenes/export_blends.py
+	mkdir -p ./tests/godot_project/exports/
+	rm -rf ./tests/godot_project/.import  # Ensure we don't have any hangover data
+	$(BLENDER) -b --python ./tests/export_test_scenes.py
 
 
 test-import: export-blends
@@ -26,11 +25,11 @@ test-import: export-blends
 
 
 update-examples:
-	mkdir -p tests/reference-exports
-	cp tests/exports/*.escn tests/reference-exports
-	
+	mkdir -p tests/reference_exports
+	cp tests/godot_project/exports/*.escn tests/reference_exports
+
 compare: export-blends
-	diff -x "*.escn.import" -r tests/exports/ tests/reference-exports/
+	diff -x "*.escn.import" -r tests/godot_project/exports/ tests/reference_exports/
 
 
 style-test: pep8 pylint

+ 2 - 2
tests/scenes/export_blends.py → tests/export_test_scenes.py

@@ -14,7 +14,7 @@ def export_escn(out_file):
 
 
 def main():
-    target_dir = os.path.join(os.getcwd(), "tests/scenes")
+    target_dir = os.path.join(os.getcwd(), "tests/test_scenes")
     for file_name in os.listdir(target_dir):
         full_path = os.path.join(target_dir, file_name)
         if full_path.endswith(".blend"):
@@ -22,9 +22,9 @@ def main():
             bpy.ops.wm.open_mainfile(filepath=full_path)
 
             out_path, blend_name = os.path.split(full_path)
-            out_path = os.path.normpath(os.path.join(out_path, '../exports/'))
             out_path = os.path.join(
                 out_path,
+                '../godot_project/exports/',
                 blend_name.replace('.blend', '.escn')
                 )
             print(out_path)

+ 0 - 0
tests/default_env.tres → tests/godot_project/default_env.tres


+ 0 - 0
tests/icon.png → tests/godot_project/icon.png


+ 0 - 0
tests/multi_uv_tester.tres → tests/godot_project/multi_uv_tester.tres


+ 0 - 0
tests/project.godot → tests/godot_project/project.godot


+ 0 - 0
tests/uv_tester_material.tres → tests/godot_project/uv_tester_material.tres


+ 0 - 0
tests/uvtester.jpg → tests/godot_project/uvtester.jpg


+ 0 - 0
tests/uvtester_normals.jpg → tests/godot_project/uvtester_normals.jpg


+ 0 - 0
tests/viewers/just_mesh.tscn → tests/godot_project/viewers/just_mesh.tscn


+ 0 - 0
tests/viewers/tangent_test.tscn → tests/godot_project/viewers/tangent_test.tscn


+ 0 - 0
tests/viewers/uv_testing.tscn → tests/godot_project/viewers/uv_testing.tscn


+ 0 - 0
tests/viewers/vertex_color.tscn → tests/godot_project/viewers/vertex_color.tscn


+ 0 - 0
tests/reference-exports/animation_bone_transform.escn → tests/reference_exports/animation_bone_transform.escn


+ 0 - 0
tests/reference-exports/animation_object_transform.escn → tests/reference_exports/animation_object_transform.escn


+ 0 - 0
tests/reference-exports/animation_parented_objects.escn → tests/reference_exports/animation_parented_objects.escn


+ 0 - 0
tests/reference-exports/animation_rotation_euler.escn → tests/reference_exports/animation_rotation_euler.escn


+ 0 - 0
tests/reference-exports/armature_bone_attachment.escn → tests/reference_exports/armature_bone_attachment.escn


+ 0 - 0
tests/reference-exports/armature_with_mesh.escn → tests/reference_exports/armature_with_mesh.escn


+ 0 - 0
tests/reference-exports/armature_with_other_vertex_groups.escn → tests/reference_exports/armature_with_other_vertex_groups.escn


+ 0 - 0
tests/reference-exports/armature_with_physics.escn → tests/reference_exports/armature_with_physics.escn


+ 0 - 0
tests/reference-exports/armature_with_pose.escn → tests/reference_exports/armature_with_pose.escn


+ 0 - 0
tests/reference-exports/duplicate_name.escn → tests/reference_exports/duplicate_name.escn


+ 0 - 0
tests/reference-exports/just_armature.escn → tests/reference_exports/just_armature.escn


+ 0 - 0
tests/reference-exports/just_cameras.escn → tests/reference_exports/just_cameras.escn


+ 0 - 0
tests/reference-exports/just_mesh.escn → tests/reference_exports/just_mesh.escn


+ 0 - 0
tests/reference-exports/just_point_lights.escn → tests/reference_exports/just_point_lights.escn


+ 0 - 0
tests/reference-exports/just_shapekey.escn → tests/reference_exports/just_shapekey.escn


+ 0 - 0
tests/reference-exports/just_spot_lights.escn → tests/reference_exports/just_spot_lights.escn


+ 0 - 0
tests/reference-exports/material_search.escn → tests/reference_exports/material_search.escn


+ 0 - 0
tests/reference-exports/parented_meshes.escn → tests/reference_exports/parented_meshes.escn


+ 0 - 0
tests/reference-exports/physics.escn → tests/reference_exports/physics.escn


+ 0 - 0
tests/reference-exports/shapekey_with_multi_surface.escn → tests/reference_exports/shapekey_with_multi_surface.escn


+ 0 - 0
tests/reference-exports/simple_materials.escn → tests/reference_exports/simple_materials.escn


+ 0 - 0
tests/reference-exports/tangent_test.escn → tests/reference_exports/tangent_test.escn


+ 0 - 0
tests/reference-exports/uv_testing.escn → tests/reference_exports/uv_testing.escn


+ 0 - 0
tests/reference-exports/vertex_color.escn → tests/reference_exports/vertex_color.escn


+ 0 - 0
tests/scenes/animation_bone_transform.blend → tests/test_scenes/animation_bone_transform.blend


+ 0 - 0
tests/scenes/animation_object_transform.blend → tests/test_scenes/animation_object_transform.blend


+ 0 - 0
tests/scenes/animation_parented_objects.blend → tests/test_scenes/animation_parented_objects.blend


+ 0 - 0
tests/scenes/animation_rotation_euler.blend → tests/test_scenes/animation_rotation_euler.blend


+ 0 - 0
tests/scenes/armature_bone_attachment.blend → tests/test_scenes/armature_bone_attachment.blend


+ 0 - 0
tests/scenes/armature_with_mesh.blend → tests/test_scenes/armature_with_mesh.blend


+ 0 - 0
tests/scenes/armature_with_other_vertex_groups.blend → tests/test_scenes/armature_with_other_vertex_groups.blend


+ 0 - 0
tests/scenes/armature_with_physics.blend → tests/test_scenes/armature_with_physics.blend


+ 0 - 0
tests/scenes/armature_with_pose.blend → tests/test_scenes/armature_with_pose.blend


+ 0 - 0
tests/scenes/duplicate_name.blend → tests/test_scenes/duplicate_name.blend


+ 0 - 0
tests/scenes/just_armature.blend → tests/test_scenes/just_armature.blend


+ 0 - 0
tests/scenes/just_cameras.blend → tests/test_scenes/just_cameras.blend


+ 0 - 0
tests/scenes/just_mesh.blend → tests/test_scenes/just_mesh.blend


+ 0 - 0
tests/scenes/just_point_lights.blend → tests/test_scenes/just_point_lights.blend


+ 0 - 0
tests/scenes/just_shapekey.blend → tests/test_scenes/just_shapekey.blend


+ 0 - 0
tests/scenes/just_spot_lights.blend → tests/test_scenes/just_spot_lights.blend


+ 0 - 0
tests/scenes/material_search.blend → tests/test_scenes/material_search.blend


+ 0 - 0
tests/scenes/parented_meshes.blend → tests/test_scenes/parented_meshes.blend


+ 0 - 0
tests/scenes/physics.blend → tests/test_scenes/physics.blend


+ 0 - 0
tests/scenes/shapekey_with_multi_surface.blend → tests/test_scenes/shapekey_with_multi_surface.blend


+ 0 - 0
tests/scenes/simple_materials.blend → tests/test_scenes/simple_materials.blend


+ 0 - 0
tests/scenes/tangent_test.blend → tests/test_scenes/tangent_test.blend


+ 0 - 0
tests/scenes/uv_testing.blend → tests/test_scenes/uv_testing.blend


+ 0 - 0
tests/scenes/vertex_color.blend → tests/test_scenes/vertex_color.blend