mirror of
https://github.com/ApfelTeeSaft/lightspeed64.git
synced 2026-08-26 19:33:24 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user