mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 23:02:32 +02:00
Allow copying grandchild entities.
Using Copy/Paste on entities only worked for one level of children, but not for grandchildren.
This commit is contained in:
parent
8ff47659d3
commit
69ebf1629d
2 changed files with 5 additions and 5 deletions
|
@ -1620,7 +1620,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