mirror of
https://github.com/lubosz/overte.git
synced 2025-04-11 13:42:07 +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
|
||||
Picks.setIgnoreItems(pickID, blacklist);
|
||||
Script.scriptEnding.connect(function() {
|
||||
RayPick.removeRayPick(pickID);
|
||||
Picks.removePick(pickID);
|
||||
});
|
||||
|
||||
// query object materials (using the Graphics.* API)
|
||||
|
@ -68,6 +68,6 @@ function updateOverlay(overlayID, result) {
|
|||
|
||||
// monitor for enw results at 30fps
|
||||
Script.setInterval(function() {
|
||||
var result = RayPick.getPrevRayPickResult(pickID);
|
||||
var result = Picks.getPrevPickResult(pickID);
|
||||
updateOverlay(overlayID, result);
|
||||
}, UPDATE_MS);
|
||||
|
|
Loading…
Reference in a new issue