Kaynağa Gözat

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

Nicholas Barlow 5 yıl önce
ebeveyn
işleme
b0933ffa7b
2 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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 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

+ 1 - 0
src/Meshes/mesh.ts

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