Browse Source

Merge pull request #4327 from bghgary/fix-typo

Fix bug with setting unlit property of PBR material after the material is ready
David Catuhe 7 years ago
parent
commit
c349e13b92
2 changed files with 2 additions and 1 deletions
  1. 1 0
      dist/preview release/what's new.md
  2. 1 1
      src/Materials/PBR/babylon.pbrMaterial.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -39,6 +39,7 @@
 - Physics `unregisterOnPhysicsCollide` didn't remove callback correctly [#4291](https://github.com/BabylonJS/Babylon.js/issues/4291) ([RaananW](https://github.com/RaananW))
 - Added missing getter and setter for global exposure in ColorCurves ([RaananW](https://github.com/RaananW))
 - Fixed an issue with view matrix when `ArcRotateCamera` was used with collisions ([Deltakosh](https://github.com/deltakosh))
+- Fixed a bug with setting `unlit` on `PBRMaterial` after the material is ready ([bghgary](http://www.github.com/bghgary))
 
 ### Viewer
 

+ 1 - 1
src/Materials/PBR/babylon.pbrMaterial.ts

@@ -487,7 +487,7 @@
          * If set to true, no lighting calculations will be applied.
          */
         @serialize()
-        @expandToProperty("_markAllSubMeshesAsLightsDirty")
+        @expandToProperty("_markAllSubMeshesAsMiscDirty")
         public unlit = false;
 
         /**