Ver código fonte

Geometry: groupsNeedUpdate support. Should fix #6694.

Mr.doob 10 anos atrás
pai
commit
30dea67878
1 arquivos alterados com 8 adições e 2 exclusões
  1. 8 2
      src/core/Geometry.js

+ 8 - 2
src/core/Geometry.js

@@ -45,8 +45,6 @@ THREE.Geometry = function () {
 	this.colorsNeedUpdate = false;
 	this.lineDistancesNeedUpdate = false;
 
-	this.groupsNeedUpdate = false;
-
 };
 
 THREE.Geometry.prototype = {
@@ -1071,6 +1069,14 @@ THREE.Geometry.prototype = {
 
 		this.dispatchEvent( { type: 'dispose' } );
 
+	},
+
+	// Backwards compatibility
+
+	set groupsNeedUpdate ( value ) {
+
+		if ( value === true ) this.dispose();
+
 	}
 
 };