[OoT] Fix animation exporter expecting an object name with custom paths (#546)

fix animation exporter expecting an object name with custom paths
This commit is contained in:
Yanis
2025-06-01 02:10:42 +02:00
committed by GitHub
parent a80a05bce5
commit fa62e1343b
+8 -1
View File
@@ -18,10 +18,17 @@ from ..oot_utility import (
def exportAnimationC(armatureObj: bpy.types.Object, settings: OOTAnimExportSettingsProperty):
if settings.isCustom:
checkEmptyName(settings.customPath)
else:
checkEmptyName(settings.folderName)
if settings.isCustomFilename:
checkEmptyName(settings.filename)
path = bpy.path.abspath(settings.customPath)
exportPath = ootGetObjectPath(settings.isCustom, path, settings.folderName, False)
checkEmptyName(settings.folderName)
checkEmptyName(armatureObj.name)
name = toAlnum(armatureObj.name)
filename = settings.filename if settings.isCustomFilename else name