mirror of
https://github.com/overte-org/overte.git
synced 2025-06-23 19:00:02 +02:00
Minor Code Adjustments
Minor Code Adjustments
This commit is contained in:
parent
7c9808de40
commit
37d694afa0
1 changed files with 5 additions and 5 deletions
|
@ -319,7 +319,7 @@ SelectionManager = (function() {
|
||||||
that.addChildrenEntities(originalEntityID, entitiesToDuplicate, entityHostTypes[i].entityHostType);
|
that.addChildrenEntities(originalEntityID, entitiesToDuplicate, entityHostTypes[i].entityHostType);
|
||||||
}
|
}
|
||||||
|
|
||||||
var hasItFailed = false;
|
var duplicateInterrupted = false;
|
||||||
// duplicate entities from above and store their original to new entity mappings and children needing re-parenting
|
// duplicate entities from above and store their original to new entity mappings and children needing re-parenting
|
||||||
for (var i = 0; i < entitiesToDuplicate.length; i++) {
|
for (var i = 0; i < entitiesToDuplicate.length; i++) {
|
||||||
var originalEntityID = entitiesToDuplicate[i];
|
var originalEntityID = entitiesToDuplicate[i];
|
||||||
|
@ -367,7 +367,7 @@ SelectionManager = (function() {
|
||||||
}
|
}
|
||||||
originalEntityToNewEntityID[originalEntityID] = newEntityID;
|
originalEntityToNewEntityID[originalEntityID] = newEntityID;
|
||||||
} else {
|
} else {
|
||||||
hasItFailed = true;
|
duplicateInterrupted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -386,10 +386,10 @@ SelectionManager = (function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!hasItFailed) {
|
if (duplicateInterrupted) {
|
||||||
audioFeedback.confirmation();
|
|
||||||
} else {
|
|
||||||
audioFeedback.rejection();
|
audioFeedback.rejection();
|
||||||
|
} else {
|
||||||
|
audioFeedback.confirmation();
|
||||||
}
|
}
|
||||||
return duplicatedEntityIDs;
|
return duplicatedEntityIDs;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue