mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 01:56:39 +02:00
Merge pull request #4504 from huffman/disable-duplicate-on-locked-entity
Disable duplicate on locked entity
This commit is contained in:
commit
0c85881908
2 changed files with 14 additions and 12 deletions
|
@ -1263,11 +1263,13 @@ SelectionDisplay = (function () {
|
|||
duplicatedEntityIDs = [];
|
||||
for (var otherEntityID in SelectionManager.savedProperties) {
|
||||
var properties = SelectionManager.savedProperties[otherEntityID];
|
||||
var entityID = Entities.addEntity(properties);
|
||||
duplicatedEntityIDs.push({
|
||||
entityID: entityID,
|
||||
properties: properties,
|
||||
});
|
||||
if (!properties.locked) {
|
||||
var entityID = Entities.addEntity(properties);
|
||||
duplicatedEntityIDs.push({
|
||||
entityID: entityID,
|
||||
properties: properties,
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
duplicatedEntityIDs = null;
|
||||
|
@ -1361,11 +1363,13 @@ SelectionDisplay = (function () {
|
|||
duplicatedEntityIDs = [];
|
||||
for (var otherEntityID in SelectionManager.savedProperties) {
|
||||
var properties = SelectionManager.savedProperties[otherEntityID];
|
||||
var entityID = Entities.addEntity(properties);
|
||||
duplicatedEntityIDs.push({
|
||||
entityID: entityID,
|
||||
properties: properties,
|
||||
});
|
||||
if (!properties.locked) {
|
||||
var entityID = Entities.addEntity(properties);
|
||||
duplicatedEntityIDs.push({
|
||||
entityID: entityID,
|
||||
properties: properties,
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
duplicatedEntityIDs = null;
|
||||
|
|
|
@ -80,7 +80,6 @@ function touchBeginEvent(event) {
|
|||
yawFromTouch = 0;
|
||||
pitchFromTouch = 0;
|
||||
startedTouching = true;
|
||||
print("TOUCH BEGIN");
|
||||
}
|
||||
|
||||
function touchEndEvent(event) {
|
||||
|
@ -88,7 +87,6 @@ function touchEndEvent(event) {
|
|||
print("touchEndEvent event.x,y=" + event.x + ", " + event.y);
|
||||
}
|
||||
startedTouching = false;
|
||||
print("TOUCH END");
|
||||
}
|
||||
|
||||
function touchUpdateEvent(event) {
|
||||
|
|
Loading…
Reference in a new issue