Add a Name on the Material of the shape visualizer

Add a Name on the Material of the shape visualizer
to be able to exclude it when a zone is selected.
This commit is contained in:
Alezia Kurdis 2020-12-08 23:39:26 -05:00 committed by GitHub
parent 699f28c9b4
commit 5a3f4b59c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,6 +143,7 @@ EntityShape.prototype = {
var PROJECTED_MATERIALS = false;
this.materialEntity = Entities.addEntity({
type: "Material",
name: "MATERIAL_" + this.entityShapeVisualizerSessionName,
localPosition: Vec3.ZERO,
localRotation: Quat.IDENTITY,
localDimensions: properties.localDimensions,