Skip to content

Commit

Permalink
fix: materials are now fully refreshed in "Assets" panel
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-moreau committed May 3, 2022
1 parent 7d5df15 commit edca7e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/editor/assets/materials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export class MaterialAssets extends AbstractAssets {
public async refresh(): Promise<void> {
this._updateSourcesWatchers();

this.items = [];

for (const material of this.editor.scene!.materials) {
const editorPath = material.metadata?.editorPath;
if (!editorPath) {
Expand Down

0 comments on commit edca7e0

Please sign in to comment.