🔎 Search Terms
Property 'dispose' does not exist on type 'string | number | boolean | Record<string, any> | Color | ((material: Material) => Material)
🕗 Version & Regression Information

⏯ Playground Link
No response
💻 Code
exportfunctiondisposeMaterial(material: THREE.Material){if(materialinstanceofTHREE.Material){for(constkeyinmaterial){constk=keyaskeyofTHREE.Materialif(material[k]instanceofTHREE.Texture){//@ts-ignore material[k].dispose()}}material.dispose()}}🙁 Actual behavior
no error
🙂 Expected behavior
no error
Additional information about the issue
No response
🔎 Search Terms
Property 'dispose' does not exist on type 'string | number | boolean | Record<string, any> | Color | ((material: Material) => Material)
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
no error
🙂 Expected behavior
no error
Additional information about the issue
No response