Skip to content

Commit

Permalink
fix(engine): ShaderInputs ignore props with disableWarnings (#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored Jan 9, 2025
1 parent 8befd5e commit 65d5e14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/engine/src/shader-inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ export class ShaderInputs<
const moduleName = name as keyof ShaderPropsT;
const moduleProps = props[moduleName] || {};
const module = this.modules[moduleName];
if (!module && !this.options.disableWarnings) {
if (!module) {
// Ignore props for unregistered modules
log.warn(`Module ${name} not found`)();
if (!this.options.disableWarnings) {
log.warn(`Module ${name} not found`)();
}
continue; // eslint-disable-line no-continue
}

Expand Down

0 comments on commit 65d5e14

Please sign in to comment.