mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 12:57:34 +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
|
@ -517,7 +517,7 @@ function mousePressEvent(event) {
|
|||
modelSelected = true;
|
||||
selectedModelID = foundModels[i];
|
||||
selectedModelProperties = properties;
|
||||
|
||||
|
||||
selectedModelProperties.oldRadius = selectedModelProperties.radius;
|
||||
selectedModelProperties.oldPosition = {
|
||||
x: selectedModelProperties.position.x,
|
||||
|
@ -534,7 +534,11 @@ 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