Browse Source

Fix issue in merge meshes where mesh overridden material side orientation was not propagated to merged mesh

Nicholas Barlow 5 years ago
parent
commit
b0933ffa7b
2 changed files with 2 additions and 0 deletions
  1. 1 0
      dist/preview release/what's new.md
  2. 1 0
      src/Meshes/mesh.ts

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

@@ -98,5 +98,6 @@
 - Fix freeze (infinite loop) when disposing a scene that loaded some specific gLTF files ([Popov72](https://github.com/Popov72)
 - Fix freeze (infinite loop) when disposing a scene that loaded some specific gLTF files ([Popov72](https://github.com/Popov72)
 
 
 - Fix submesh recreation when it should not ([Popov72](https://github.com/Popov72)
 - Fix submesh recreation when it should not ([Popov72](https://github.com/Popov72)
+- Fix mesh winding order inversion when merging meshes with overridden side orientation ([drigax](https://github.com/Drigax))
 
 
 ## Breaking changes
 ## Breaking changes

+ 1 - 0
src/Meshes/mesh.ts

@@ -4114,6 +4114,7 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
 
 
         // Setting properties
         // Setting properties
         meshSubclass.checkCollisions = source.checkCollisions;
         meshSubclass.checkCollisions = source.checkCollisions;
+        meshSubclass.overrideMaterialSideOrientation = source.overrideMaterialSideOrientation;
 
 
         // Cleaning
         // Cleaning
         if (disposeSource) {
         if (disposeSource) {