浏览代码

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 年之前
父节点
当前提交
c349e13b92
共有 2 个文件被更改,包括 2 次插入1 次删除
  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))
 - 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))
 - 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 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
 ### Viewer
 
 

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

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