Browse Source

Solid particle "props" property

Jérôme Bousquié 5 năm trước cách đây
mục cha
commit
453398429e

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

@@ -11,5 +11,6 @@
 ## Bugs
 ## Bugs
 
 
 - Fix infinite loop in `GlowLayer.unReferenceMeshFromUsingItsOwnMaterial` ([Popov72](https://github.com/Popov72)
 - 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
 ## Breaking changes

+ 4 - 0
src/Particles/solidParticle.ts

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