mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 21:33:00 +02:00
Add Hierarchy display in List and Selection
Add Hierarchy display in List and Selection
This commit is contained in:
parent
48bd101d08
commit
cfec2c492b
1 changed files with 13 additions and 1 deletions
|
@ -203,6 +203,17 @@ EntityListTool = function(shouldUseEditTabletApp) {
|
|||
} else if (properties.type === "Image") {
|
||||
url = properties.imageURL;
|
||||
}
|
||||
|
||||
var parentStatus = getParentState(ids[i]);
|
||||
var parentState = "";
|
||||
if (parentStatus === "PARENT") {
|
||||
parentState = "N";
|
||||
} else if (parentStatus === "CHILDREN") {
|
||||
parentState = "O";
|
||||
} else if (parentStatus === "PARENT_CHILDREN") {
|
||||
parentState = "M";
|
||||
}
|
||||
|
||||
entities.push({
|
||||
id: ids[i],
|
||||
name: properties.name,
|
||||
|
@ -222,7 +233,8 @@ EntityListTool = function(shouldUseEditTabletApp) {
|
|||
isBaked: entityIsBaked(properties),
|
||||
drawCalls: (properties.renderInfo !== undefined ?
|
||||
valueIfDefined(properties.renderInfo.drawCalls) : ""),
|
||||
hasScript: properties.script !== ""
|
||||
hasScript: properties.script !== "",
|
||||
parentState: parentState
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue