Przeglądaj źródła

HemisphereLight: Use super in copy(). (#24060)

Michael Herzog 3 lat temu
rodzic
commit
1b1098c22d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/lights/HemisphereLight.js

+ 1 - 1
src/lights/HemisphereLight.js

@@ -19,7 +19,7 @@ class HemisphereLight extends Light {
 
 	copy( source ) {
 
-		Light.prototype.copy.call( this, source );
+		super.copy( source );
 
 		this.groundColor.copy( source.groundColor );