Add Hierarchy display in List and Selection

Add Hierarchy display in List and Selection
This commit is contained in:
Alezia Kurdis 2020-10-21 00:48:49 -04:00 committed by GitHub
parent 48bd101d08
commit cfec2c492b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
});
}
}