mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:52:26 +02:00
Glow when grabbed with the mouse (for now)
This commit is contained in:
parent
df68082705
commit
53141ff1c1
1 changed files with 13 additions and 2 deletions
|
@ -535,6 +535,10 @@ function mousePressEvent(event) {
|
|||
orientation = MyAvatar.orientation;
|
||||
intersection = rayPlaneIntersection(pickRay, P, Quat.getFront(orientation));
|
||||
|
||||
|
||||
selectedModelProperties.glowLevel = 0.1;
|
||||
Models.editModel(selectedModelID, { glowLevel: selectedModelProperties.glowLevel});
|
||||
|
||||
print("Clicked on " + selectedModelID.id + " " + modelSelected);
|
||||
return;
|
||||
}
|
||||
|
@ -543,6 +547,13 @@ function mousePressEvent(event) {
|
|||
}
|
||||
}
|
||||
|
||||
Controller.mouseReleaseEvent.connect(function() {
|
||||
if (modelSelected) {
|
||||
Models.editModel(selectedModelID, { glowLevel: 0.0 });
|
||||
modelSelected = false;
|
||||
}
|
||||
});
|
||||
|
||||
var oldModifier = 0;
|
||||
var modifier = 0;
|
||||
var wasShifted = false;
|
||||
|
|
Loading…
Reference in a new issue