A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix: hide material preview panel when no material assigned
esengine5db7e89ebfd4
diff --git a/editor/src/panels/InspectorPanel.ts b/editor/src/panels/InspectorPanel.tsindex 945b17179..f46588529 100644--- a/editor/src/panels/InspectorPanel.ts+++ b/editor/src/panels/InspectorPanel.ts@@ -526,7 +526,7 @@ export class InspectorPanel {const materialPath = spriteComp?.data?.material as string | undefined;if (!materialPath) {- this.renderEmptyMaterialPreview();+ this.hideMaterialPreview();return;}