浏览代码

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 );