浏览代码

Solid particle "props" property

Jérôme Bousquié 5 年之前
父节点
当前提交
453398429e
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 1 0
      dist/preview release/what's new.md
  2. 4 0
      src/Particles/solidParticle.ts

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

@@ -11,5 +11,6 @@
 ## Bugs
 
 - Fix infinite loop in `GlowLayer.unReferenceMeshFromUsingItsOwnMaterial` ([Popov72](https://github.com/Popov72)
+- Fix picking issue in the Solid Particle System when MultiMaterial is enabled ([jerome](https://github.com/jbousquie))
 
 ## Breaking changes

+ 4 - 0
src/Particles/solidParticle.ts

@@ -117,6 +117,10 @@ export class SolidParticle {
      */
     public materialIndex: Nullable<number> = null;
     /**
+     * Custom object or properties.
+     */
+    public props: Nullable<any> = null;
+    /**
      * The culling strategy to use to check whether the solid particle must be culled or not when using isInFrustum().
      * The possible values are :
      * - AbstractMesh.CULLINGSTRATEGY_STANDARD