Prechádzať zdrojové kódy

Merge pull request #6233 from MackeyK24/master

Support LightmapMode Parsing
David Catuhe 6 rokov pred
rodič
commit
ece87d65c9
1 zmenil súbory, kde vykonal 10 pridanie a 0 odobranie
  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++) {