Merge pull request #14830 from thoys/fix/create/zoneShapeVisualizersIgnorePickray

MS20909: ignore pickRay for zone shape visualizers
This commit is contained in:
Brad Hefta-Gaub 2019-02-08 19:12:58 -08:00 committed by GitHub
commit 8faff57033
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {