Explorar el Código

Update light.ts

MackeyK24 hace 6 años
padre
commit
5ed2e2cc76
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/Lights/light.ts

+ 5 - 0
src/Lights/light.ts

@@ -607,6 +607,11 @@ export abstract class Light extends Node {
             light._waitingParentId = parsedLight.parentId;
         }
 
+        // Falloff
+        if (parsedLight.falloffType !== undefined) {
+            light.falloffType = parsedLight.falloffType;
+        }
+
         // Lightmaps
         if (parsedLight.lightmapMode !== undefined) {
             light.lightmapMode = parsedLight.lightmapMode;