mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:37:35 +02:00
Disable duplicating locked entities
This commit is contained in:
parent
e6ac502fb5
commit
dec89ba96f
1 changed files with 14 additions and 10 deletions
|
@ -1263,11 +1263,13 @@ SelectionDisplay = (function () {
|
||||||
duplicatedEntityIDs = [];
|
duplicatedEntityIDs = [];
|
||||||
for (var otherEntityID in SelectionManager.savedProperties) {
|
for (var otherEntityID in SelectionManager.savedProperties) {
|
||||||
var properties = SelectionManager.savedProperties[otherEntityID];
|
var properties = SelectionManager.savedProperties[otherEntityID];
|
||||||
var entityID = Entities.addEntity(properties);
|
if (!properties.locked) {
|
||||||
duplicatedEntityIDs.push({
|
var entityID = Entities.addEntity(properties);
|
||||||
entityID: entityID,
|
duplicatedEntityIDs.push({
|
||||||
properties: properties,
|
entityID: entityID,
|
||||||
});
|
properties: properties,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
duplicatedEntityIDs = null;
|
duplicatedEntityIDs = null;
|
||||||
|
@ -1361,11 +1363,13 @@ SelectionDisplay = (function () {
|
||||||
duplicatedEntityIDs = [];
|
duplicatedEntityIDs = [];
|
||||||
for (var otherEntityID in SelectionManager.savedProperties) {
|
for (var otherEntityID in SelectionManager.savedProperties) {
|
||||||
var properties = SelectionManager.savedProperties[otherEntityID];
|
var properties = SelectionManager.savedProperties[otherEntityID];
|
||||||
var entityID = Entities.addEntity(properties);
|
if (!properties.locked) {
|
||||||
duplicatedEntityIDs.push({
|
var entityID = Entities.addEntity(properties);
|
||||||
entityID: entityID,
|
duplicatedEntityIDs.push({
|
||||||
properties: properties,
|
entityID: entityID,
|
||||||
});
|
properties: properties,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
duplicatedEntityIDs = null;
|
duplicatedEntityIDs = null;
|
||||||
|
|
Loading…
Reference in a new issue