mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-08 05:06:55 +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") {
|
} else if (properties.type === "Image") {
|
||||||
url = properties.imageURL;
|
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({
|
entities.push({
|
||||||
id: ids[i],
|
id: ids[i],
|
||||||
name: properties.name,
|
name: properties.name,
|
||||||
|
@ -222,7 +233,8 @@ EntityListTool = function(shouldUseEditTabletApp) {
|
||||||
isBaked: entityIsBaked(properties),
|
isBaked: entityIsBaked(properties),
|
||||||
drawCalls: (properties.renderInfo !== undefined ?
|
drawCalls: (properties.renderInfo !== undefined ?
|
||||||
valueIfDefined(properties.renderInfo.drawCalls) : ""),
|
valueIfDefined(properties.renderInfo.drawCalls) : ""),
|
||||||
hasScript: properties.script !== ""
|
hasScript: properties.script !== "",
|
||||||
|
parentState: parentState
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue