Merge branch 'main' into main

This commit is contained in:
Yusarina
2024-07-22 22:16:55 +01:00
committed by GitHub
4 changed files with 52 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
import bpy
# Importers which don't need much code should be added here, however if a importer needs alot of code
# Like the PMX and PMD importers, they should be added to their own files.
# FBX Importer settings borrowed form Cat's Blender Plugin
def import_fbx(filepath):
try:
bpy.ops.import_scene.fbx(
filepath=filepath,
automatic_bone_orientation=False,
use_prepost_rot=False,
use_anim=False
)
except (TypeError, ValueError) as e:
print(f"Error importing FBX: {str(e)}")
-1
View File
@@ -113,4 +113,3 @@ def toposort(deps_dict):
deps_dict = {value : deps_dict[value] - sorted_values for value in unsorted}
return sorted_list