aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib')
-rwxr-xr-xjs/lib/geom/geom-obj.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/lib/geom/geom-obj.js b/js/lib/geom/geom-obj.js
index ce06498d..44daa291 100755
--- a/js/lib/geom/geom-obj.js
+++ b/js/lib/geom/geom-obj.js
@@ -196,6 +196,24 @@ var GeomObj = function GLGeomObj() {
196 } 196 }
197 } 197 }
198 } 198 }
199 } else {
200 if (type === "fill") {
201 this._fillColor = null;
202 } else {
203 this._strokeColor = null;
204 }
205
206 if (this._materialArray && this._materialTypeArray) {
207 nMats = this._materialArray.length;
208 if (nMats === this._materialTypeArray.length) {
209 for (i=0; i<nMats; i++) {
210 if (this._materialTypeArray[i] == type) {
211 // TODO - Not sure how to set color to null values in shaders
212 this._materialArray[i].setProperty( "color", [0,0,0,0] );
213 }
214 }
215 }
216 }
199 } 217 }
200 218
201 var world = this.getWorld(); 219 var world = this.getWorld();