Sfoglia il codice sorgente

Merge pull request #6233 from MackeyK24/master

Support LightmapMode Parsing
David Catuhe 6 anni fa
parent
commit
ece87d65c9
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      src/Lights/light.ts

+ 10 - 0
src/Lights/light.ts

@@ -607,6 +607,16 @@ 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;
+        }
+
         // Animations
         if (parsedLight.animations) {
             for (var animationIndex = 0; animationIndex < parsedLight.animations.length; animationIndex++) {