mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 04:44:32 +02:00
Cleanup, comments
This commit is contained in:
parent
57aca0c418
commit
d8e7cd89ad
2 changed files with 5 additions and 9 deletions
|
@ -122,7 +122,7 @@ window.onload = function() {
|
|||
});
|
||||
|
||||
controller.onFinishChange(function(value) {
|
||||
console.log('should group?', controller.shouldGroup)
|
||||
// console.log('should group?', controller.shouldGroup)
|
||||
// Fires when a controller loses focus.
|
||||
writeDataToInterface(this.property, value, this.shouldGroup)
|
||||
});
|
||||
|
|
|
@ -131,19 +131,17 @@ SettingsWindow = function() {
|
|||
print('INIT testParticles' + testParticles)
|
||||
};
|
||||
this.onWebEventReceived = function(data) {
|
||||
print('DATA ' + data)
|
||||
|
||||
|
||||
// print('DATA ' + data)
|
||||
var _data = JSON.parse(data)
|
||||
if (_data.type !== 'particleExplorer_update') {
|
||||
return;
|
||||
}
|
||||
if (_data.shouldGroup === true) {
|
||||
print('USE GROUP PROPERTIES')
|
||||
// print('USE GROUP PROPERTIES')
|
||||
editEntity(_data.groupProperties)
|
||||
return;
|
||||
} else {
|
||||
print('USE A SINGLE PROPERTY')
|
||||
// print('USE A SINGLE PROPERTY')
|
||||
editEntity(_data.singleProperty)
|
||||
|
||||
}
|
||||
|
@ -155,11 +153,9 @@ SettingsWindow = function() {
|
|||
|
||||
|
||||
function editEntity(properties) {
|
||||
// print('TEST PARTICLES??' + testParticles)
|
||||
print('PROPS' + JSON.stringify(properties));
|
||||
Entities.editEntity(testParticles, properties);
|
||||
var currentProperties = Entities.getEntityProperties(testParticles)
|
||||
print('CURRENT PROPS', JSON.stringify(currentProperties))
|
||||
// print('CURRENT PROPS', JSON.stringify(currentProperties))
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue