mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Remove dead code
This commit is contained in:
parent
de14fdffb7
commit
0f0ea5f73f
1 changed files with 0 additions and 39 deletions
|
@ -192,42 +192,3 @@ ControllerDisplayManager = function() {
|
|||
|
||||
updateControllers();
|
||||
}
|
||||
|
||||
/*
|
||||
var controllerDisplayManager = new ControllerDisplayManager();
|
||||
|
||||
Messages.subscribe('Hifi-Object-Manipulation');
|
||||
function onMessageReceived(channel, message, sender) {
|
||||
print(channel, message, sender);
|
||||
if (channel == 'Hifi-Object-Manipulation') {// && sender == MyAvatar.sessionUUID) {
|
||||
print("got manip");
|
||||
var data = JSON.parse(message);
|
||||
print("post data", data);
|
||||
var visible = data.action != 'equip';
|
||||
print("Calling...");
|
||||
if (data.joint == "LeftHand") {
|
||||
controllerDisplayManager.setLeftVisible(visible);
|
||||
} else if (data.joint == "RightHand") {
|
||||
controllerDisplayManager.setRightVisible(visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
Messages.messageReceived.connect(onMessageReceived);
|
||||
|
||||
var visible = false;
|
||||
print("SETTING IT UP");
|
||||
print("done");
|
||||
function toggleVis() {
|
||||
print("toggling");
|
||||
visible = !visible;
|
||||
controllerDisplayManager.setVisible(visible);
|
||||
}
|
||||
//toggleVis();
|
||||
//Script.setInterval(toggleVis, 1000);
|
||||
|
||||
Script.scriptEnding.connect(function() {
|
||||
print("destorying...");
|
||||
controllerDisplayManager.destroy();
|
||||
controllerDisplayManager = null;
|
||||
});
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue