mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:42:58 +02:00
changes per PR
This commit is contained in:
parent
dc5c5c20df
commit
b73a957935
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ var pickID = Picks.createPick(PickType.Ray, {
|
||||||
var blacklist = [ overlayID ]; // exclude hover text from ray pick results
|
var blacklist = [ overlayID ]; // exclude hover text from ray pick results
|
||||||
Picks.setIgnoreItems(pickID, blacklist);
|
Picks.setIgnoreItems(pickID, blacklist);
|
||||||
Script.scriptEnding.connect(function() {
|
Script.scriptEnding.connect(function() {
|
||||||
RayPick.removeRayPick(pickID);
|
Picks.removePick(pickID);
|
||||||
});
|
});
|
||||||
|
|
||||||
// query object materials (using the Graphics.* API)
|
// query object materials (using the Graphics.* API)
|
||||||
|
@ -68,6 +68,6 @@ function updateOverlay(overlayID, result) {
|
||||||
|
|
||||||
// monitor for enw results at 30fps
|
// monitor for enw results at 30fps
|
||||||
Script.setInterval(function() {
|
Script.setInterval(function() {
|
||||||
var result = RayPick.getPrevRayPickResult(pickID);
|
var result = Picks.getPrevPickResult(pickID);
|
||||||
updateOverlay(overlayID, result);
|
updateOverlay(overlayID, result);
|
||||||
}, UPDATE_MS);
|
}, UPDATE_MS);
|
||||||
|
|
Loading…
Reference in a new issue