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