mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 21:54:40 +02:00
Merge pull request #14830 from thoys/fix/create/zoneShapeVisualizersIgnorePickray
MS20909: ignore pickRay for zone shape visualizers
This commit is contained in:
commit
8faff57033
1 changed files with 2 additions and 0 deletions
|
@ -135,6 +135,7 @@ EntityShape.prototype = {
|
|||
overlayProperties.canCastShadows = false;
|
||||
overlayProperties.parentID = this.entityID;
|
||||
overlayProperties.collisionless = true;
|
||||
overlayProperties.ignorePickIntersection = true;
|
||||
this.entity = Entities.addEntity(overlayProperties, "local");
|
||||
var PROJECTED_MATERIALS = false;
|
||||
this.materialEntity = Entities.addEntity({
|
||||
|
@ -146,6 +147,7 @@ EntityShape.prototype = {
|
|||
priority: 1,
|
||||
materialMappingMode: PROJECTED_MATERIALS ? "projected" : "uv",
|
||||
materialURL: Script.resolvePath("../assets/images/materials/GridPattern.json"),
|
||||
ignorePickIntersection: true,
|
||||
}, "local");
|
||||
},
|
||||
update: function() {
|
||||
|
|
Loading…
Reference in a new issue