Explorar o código

Geometry: groupsNeedUpdate support. Should fix #6694.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
30dea67878
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  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();
+
 	}
 
 };