diff --git a/material_maker/windows/add_node_popup/node_selection_button.gd b/material_maker/windows/add_node_popup/node_selection_button.gd index 178c9984..b38c76cb 100644 --- a/material_maker/windows/add_node_popup/node_selection_button.gd +++ b/material_maker/windows/add_node_popup/node_selection_button.gd @@ -32,6 +32,10 @@ func set_icon(icon: Texture) -> void: $HBoxContainer/HBoxContainer/Icon.texture = icon func get_drag_data(position): + var texture_rect : TextureRect = TextureRect.new() + texture_rect.texture = $HBoxContainer/HBoxContainer/Icon.texture + texture_rect.rect_scale = Vector2(0.35, 0.35) + set_drag_preview(texture_rect) if path == "": return $HBoxContainer/HBoxContainer/Name.text else: