mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
Also export non-root shapes
This commit is contained in:
parent
c6d7da9d61
commit
d7ea4033f7
2 changed files with 64 additions and 68 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -253,6 +253,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
|
||||
|
@ -338,12 +340,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
|
||||
|
@ -391,7 +390,6 @@ fn runNelMaxExportSub inputMaxFile retryCount =
|
|||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
-- Export default animations
|
||||
|
||||
|
|
Loading…
Reference in a new issue