Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Fix particle systems preventing envmap bake #8050

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/editor/src/functions/uploadEnvMapBake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const uploadBPCEMBakeToServer = async (entity: Entity) => {

// inject bpcem logic into material
Engine.instance.scene.traverse((child: Mesh<any, MeshBasicMaterial>) => {
if (!child.material?.userData) return
if (!child.material || child.type == 'VFXBatch') return
child.material.userData.BPCEMPlugin = beforeMaterialCompile(
bakeComponent.bakeScale,
bakeComponent.bakePositionOffset
Expand Down