mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 19:14:59 +02:00
Merge pull request #15281 from kitely/copy-grandchild-entities
case 21980: Allow copying grandchild entities
This commit is contained in:
commit
98e0164964
2 changed files with 5 additions and 5 deletions
|
@ -1630,7 +1630,7 @@ function recursiveDelete(entities, childrenList, deletedIDs, entityHostType) {
|
|||
if (entityHostTypes[i].entityHostType !== entityHostType) {
|
||||
if (wantDebug) {
|
||||
console.log("Skipping deletion of entity " + entityID + " with conflicting entityHostType: " +
|
||||
entityHostTypes[i].entityHostType);
|
||||
entityHostTypes[i].entityHostType + ", expected: " + entityHostType);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -206,7 +206,7 @@ SelectionManager = (function() {
|
|||
if (entityHostTypes[i].entityHostType !== entityHostType) {
|
||||
if (wantDebug) {
|
||||
console.log("Skipping addition of entity " + childID + " with conflicting entityHostType: " +
|
||||
entityHostTypes[i].entityHostType);
|
||||
entityHostTypes[i].entityHostType + ", expected: " + entityHostType);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -398,15 +398,15 @@ SelectionManager = (function() {
|
|||
|
||||
if (entityHostTypes[i].entityHostType !== entityHostType) {
|
||||
if (wantDebug) {
|
||||
console.warn("Skipping deletion of entity " + id + " with conflicting entityHostType: " +
|
||||
entityHostTypes[i].entityHostType);
|
||||
console.warn("Skipping addition of entity " + id + " with conflicting entityHostType: " +
|
||||
entityHostTypes[i].entityHostType + ", expected: " + entityHostType);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(id in entities)) {
|
||||
entities[id] = Entities.getEntityProperties(id);
|
||||
appendChildren(id, entities);
|
||||
appendChildren(id, entities, entityHostType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue