Skip to content

Commit

Permalink
Tiny 3D preview bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Nov 1, 2024
1 parent e42dc29 commit 1a5699c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion material_maker/panels/preview_3d/preview_mesh.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1a5699c

Please sign in to comment.