From 1a5699cebe8804d7aa0fa11fd3971667ced201a6 Mon Sep 17 00:00:00 2001 From: Rodz Labs Date: Fri, 1 Nov 2024 08:30:38 +0100 Subject: [PATCH] Tiny 3D preview bug fix --- material_maker/panels/preview_3d/preview_mesh.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/material_maker/panels/preview_3d/preview_mesh.gd b/material_maker/panels/preview_3d/preview_mesh.gd index bd085b6f3..3e88410fd 100644 --- a/material_maker/panels/preview_3d/preview_mesh.gd +++ b/material_maker/panels/preview_3d/preview_mesh.gd @@ -21,7 +21,8 @@ func _ready(): update_mesh.call_deferred() func get_material() -> Material: - set_surface_override_material(0, material) + if get_surface_override_material_count() > 0: + set_surface_override_material(0, material) return material func set_uv_scale(s : Vector2) -> void: