Fix hierarchy detection.
This commit is contained in:
parent
10f97dcf84
commit
7a6cdaee68
@ -146,7 +146,7 @@ export class NavigatorMeshesPanel extends NavigatorPanel
|
||||
const rootNode = importResult.model.GetRootNode ();
|
||||
let isHierarchical = false;
|
||||
for (let childNode of rootNode.GetChildNodes ()) {
|
||||
if (childNode.ChildNodeCount () > 0) {
|
||||
if (childNode.ChildNodeCount () > 0 || childNode.MeshIndexCount () > 1) {
|
||||
isHierarchical = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ export function GetNodeName (originalName)
|
||||
|
||||
export function GetMeshName (originalNodeName, originalMeshName)
|
||||
{
|
||||
let originalName = (originalMeshName.length > 0 ? originalMeshName : originalNodeName);
|
||||
let originalName = (originalNodeName.length > 0 ? originalNodeName : originalMeshName);
|
||||
return GetNameOrDefault (originalName, 'No Name');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user