mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:36:44 +02:00
Remove extra print statements and whitespace
This commit is contained in:
parent
76c3e9f483
commit
af103b22ff
2 changed files with 13 additions and 19 deletions
|
@ -59,10 +59,8 @@ SelectionManager = (function() {
|
||||||
for (var i = 0; i < entityIDs.length; i++) {
|
for (var i = 0; i < entityIDs.length; i++) {
|
||||||
var entityID = entityIDs[i];
|
var entityID = entityIDs[i];
|
||||||
if (entityID.isKnownID) {
|
if (entityID.isKnownID) {
|
||||||
print('known!');
|
|
||||||
that.selections.push(entityID);
|
that.selections.push(entityID);
|
||||||
} else {
|
} else {
|
||||||
print('not known!');
|
|
||||||
that.pendingSelections.push(entityID);
|
that.pendingSelections.push(entityID);
|
||||||
if (pendingSelectionTimer == null) {
|
if (pendingSelectionTimer == null) {
|
||||||
pendingSelectionTimer = Script.setInterval(that._checkPendingSelections, PENDING_SELECTION_CHECK_INTERVAL);
|
pendingSelectionTimer = Script.setInterval(that._checkPendingSelections, PENDING_SELECTION_CHECK_INTERVAL);
|
||||||
|
@ -74,12 +72,10 @@ SelectionManager = (function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
that._checkPendingSelections = function() {
|
that._checkPendingSelections = function() {
|
||||||
print("CHECKING PENDING SELCTIONS");
|
|
||||||
for (var i = 0; i < that.pendingSelections.length; i++) {
|
for (var i = 0; i < that.pendingSelections.length; i++) {
|
||||||
var entityID = that.pendingSelections[i];
|
var entityID = that.pendingSelections[i];
|
||||||
var newEntityID = Entities.identifyEntity(entityID);
|
var newEntityID = Entities.identifyEntity(entityID);
|
||||||
if (newEntityID.isKnownID) {
|
if (newEntityID.isKnownID) {
|
||||||
print("is known!");
|
|
||||||
that.pendingSelections.splice(i, 1);
|
that.pendingSelections.splice(i, 1);
|
||||||
that.addEntity(newEntityID);
|
that.addEntity(newEntityID);
|
||||||
i--;
|
i--;
|
||||||
|
@ -94,13 +90,11 @@ SelectionManager = (function() {
|
||||||
|
|
||||||
that.addEntity = function(entityID) {
|
that.addEntity = function(entityID) {
|
||||||
if (entityID.isKnownID) {
|
if (entityID.isKnownID) {
|
||||||
print('known: ' + entityID.id);
|
|
||||||
var idx = that.selections.indexOf(entityID);
|
var idx = that.selections.indexOf(entityID);
|
||||||
if (idx == -1) {
|
if (idx == -1) {
|
||||||
that.selections.push(entityID);
|
that.selections.push(entityID);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print('not known!');
|
|
||||||
var idx = that.pendingSelections.indexOf(entityID);
|
var idx = that.pendingSelections.indexOf(entityID);
|
||||||
if (idx == -1) {
|
if (idx == -1) {
|
||||||
that.pendingSelections.push(entityID);
|
that.pendingSelections.push(entityID);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//
|
|
||||||
// newEditEntities.js
|
// newEditEntities.js
|
||||||
// examples
|
// examples
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue