瀏覽代碼

Merge pull request #7915 from Drigax/fix-MergeMeshes-SideOrientation

Fix issue in mesh.MergeMeshes where mesh overriden side orientation is not propagated.
David Catuhe 5 年之前
父節點
當前提交
20247d4603
共有 2 個文件被更改,包括 2 次插入0 次删除
  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

@@ -101,6 +101,7 @@
 - Fix submesh recreation when it should not ([Popov72](https://github.com/Popov72)
 - Fix `CustomMaterial` and `PBRCustomMaterial` not setting uniforms / samplers / attributes ([Popov72](https://github.com/Popov72)
 - Fix bug in NME where deleting a node from a frame would not remove its ports on the outside of a frame
+- 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) {