Преглед изворни кода

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

Michael Herzog пре 3 година
родитељ
комит
1b1098c22d
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );