|
|
|
@ -187,6 +187,8 @@ fn haveCoarseMesh node =
|
|
|
|
|
return false
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
fn getRoot node = if isvalidnode node.parent then getRoot node.parent else node
|
|
|
|
|
|
|
|
|
|
fn runNelMaxExportSub inputMaxFile retryCount =
|
|
|
|
|
(
|
|
|
|
|
tagThisFile = false
|
|
|
|
@ -272,12 +274,9 @@ fn runNelMaxExportSub inputMaxFile retryCount =
|
|
|
|
|
|
|
|
|
|
-- For each node
|
|
|
|
|
for node in array_node do
|
|
|
|
|
(
|
|
|
|
|
-- It is root ?
|
|
|
|
|
if (node.parent == undefined) then
|
|
|
|
|
(
|
|
|
|
|
-- Is not a skeleton ?
|
|
|
|
|
if (node.name != "Bip01") then
|
|
|
|
|
if (((substring node.name 1 3) != "Bip") and ((substring (getRoot node).name 1 3) != "Bip")) then
|
|
|
|
|
(
|
|
|
|
|
-- Can be exported ?
|
|
|
|
|
if (isToBeExported node == true) then
|
|
|
|
@ -325,7 +324,6 @@ fn runNelMaxExportSub inputMaxFile retryCount =
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
-- Export default animations
|
|
|
|
|
|
|
|
|
|