@@ -51819,7 +51819,6 @@ Vizi.Viewer.prototype.highlightObject = function(object) {
51819
51819
wireframe:true, opacity:1})
51820
51820
51821
51821
var mesh = new THREE.Mesh(geo, mat);
51822
- mesh.ignorePick = true;
51823
51822
this.highlightDecoration = new Vizi.Decoration({object:mesh});
51824
51823
object._parent.addComponent(this.highlightDecoration);
51825
51824
@@ -51899,13 +51898,6 @@ Vizi.Viewer.prototype.fitToScene = function()
51899
51898
51900
51899
// Bounding box display
51901
51900
if (true) {
51902
- var geo = new THREE.CubeGeometry(this.boundingBox.max.x - this.boundingBox.min.x,
51903
- this.boundingBox.max.y - this.boundingBox.min.y,
51904
- this.boundingBox.max.z - this.boundingBox.min.z);
51905
- var mat = new THREE.MeshBasicMaterial({color:0x00ff00, transparent:true, wireframe:true, opacity:.2});
51906
- var mesh = new THREE.Mesh(geo, mat)
51907
- mesh.ignorePick = true;
51908
- var decoration = new Vizi.Decoration({object:mesh});
51909
51901
51910
51902
this.sceneRoot.map(Vizi.Object, function(o) {
51911
51903
if (o._parent) {
@@ -51916,7 +51908,6 @@ Vizi.Viewer.prototype.fitToScene = function()
51916
51908
bbox.max.z - bbox.min.z);
51917
51909
var mat = new THREE.MeshBasicMaterial({color:0x00ff00, transparent:true, wireframe:true, opacity:.2})
51918
51910
var mesh = new THREE.Mesh(geo, mat)
51919
- mesh.ignorePick = true;
51920
51911
var decoration = new Vizi.Decoration({object:mesh});
51921
51912
o._parent.addComponent(decoration);
51922
51913
@@ -52119,7 +52110,11 @@ goog.inherits(Vizi.Decoration, Vizi.Visual);
52119
52110
52120
52111
Vizi.Decoration.prototype._componentCategory = "decorations";
52121
52112
52122
- /**
52113
+ Vizi.Decoration.prototype.realize = function()
52114
+ {
52115
+ Vizi.Visual.prototype.realize.call(this);
52116
+ this.object.ignorePick = true;
52117
+ }/**
52123
52118
* @fileoverview Module Configuration
52124
52119
*
52125
52120
* @author Tony Parisi
0 commit comments