From afa8b7632ca7f93c41b19bac4355f8ba8ebe87bd Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 1 Oct 2024 18:19:48 +0200 Subject: [PATCH] Geometry Nodes: Warning Node: Show icons on the enum Adds the icons to the Warning Type enum, so users associate the icons with the type. Pull Request: https://projects.blender.org/blender/blender/pulls/128442 --- source/blender/makesrna/intern/rna_modifier.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/blender/makesrna/intern/rna_modifier.cc b/source/blender/makesrna/intern/rna_modifier.cc index 0a03ffb4972..75b14fccd6d 100644 --- a/source/blender/makesrna/intern/rna_modifier.cc +++ b/source/blender/makesrna/intern/rna_modifier.cc @@ -568,9 +568,13 @@ const EnumPropertyItem rna_enum_shrinkwrap_face_cull_items[] = { }; const EnumPropertyItem rna_enum_node_warning_type_items[] = { - {int(blender::nodes::geo_eval_log::NodeWarningType::Error), "ERROR", 0, "Error", ""}, - {int(blender::nodes::geo_eval_log::NodeWarningType::Warning), "WARNING", 0, "Warning", ""}, - {int(blender::nodes::geo_eval_log::NodeWarningType::Info), "INFO", 0, "Info", ""}, + {int(blender::nodes::geo_eval_log::NodeWarningType::Error), "ERROR", ICON_CANCEL, "Error", ""}, + {int(blender::nodes::geo_eval_log::NodeWarningType::Warning), + "WARNING", + ICON_ERROR, + "Warning", + ""}, + {int(blender::nodes::geo_eval_log::NodeWarningType::Info), "INFO", ICON_INFO, "Info", ""}, {0, nullptr, 0, nullptr, nullptr}, };