MackeyK24 6 anni fa
parent
commit
5ed2e2cc76
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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;