Fix bug with setting unlit property of PBR material after the material is ready
@@ -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
@@ -487,7 +487,7 @@
* If set to true, no lighting calculations will be applied.
*/
@serialize()
- @expandToProperty("_markAllSubMeshesAsLightsDirty")
+ @expandToProperty("_markAllSubMeshesAsMiscDirty")
public unlit = false;
/**