2
0
Эх сурвалжийг харах

SpotLightShadow: Add missing copy() method. (#21527)

Michael Herzog 4 жил өмнө
parent
commit
9ce67faf79

+ 10 - 0
src/lights/SpotLightShadow.js

@@ -33,6 +33,16 @@ class SpotLightShadow extends LightShadow {
 
 	}
 
+	copy( source ) {
+
+		super.copy( source );
+
+		this.focus = source.focus;
+
+		return this;
+
+	}
+
 }
 
 SpotLightShadow.prototype.isSpotLightShadow = true;