Skip to content

Commit

Permalink
Fix render frame identification issue with instances (#12597)
Browse files Browse the repository at this point in the history
* Fix render frame indentification issue with instances

* format

* better fix
  • Loading branch information
deltakosh committed May 27, 2022
1 parent 966deb9 commit 49a6cee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/dev/core/src/Meshes/instancedMesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ export class InstancedMesh extends AbstractMesh {
* @hidden
*/
public _activate(renderId: number, intermediateRendering: boolean): boolean {
super._activate(renderId, intermediateRendering);

if (!this._sourceMesh.subMeshes) {
Logger.Warn("Instances should only be created for meshes with geometry.");
}
Expand Down

0 comments on commit 49a6cee

Please sign in to comment.