Explorar o código

WebGLProperties: Fixed weakmap usage in update()

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
fb612cf4b5
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      src/renderers/webgl/WebGLProperties.js

+ 1 - 4
src/renderers/webgl/WebGLProperties.js

@@ -29,10 +29,7 @@ function WebGLProperties() {
 
 	function update( object, key, value ) {
 
-		var uuid = object.uuid;
-		var map = properties[ uuid ];
-
-		map[ key ] = value;
+		properties.get( object )[ key ] = value;
 
 	}