Fix #147574: Icon_Group Use Instead of Icon_Outliner_Collection

We have icons that represent specific individual collections. like
Icon_Outliner_Collection for a default (uncolored) collection, and
Icon_Collection_color_x for ones with colors. For "collections" as a
general thing though we have icon_group. Sometimes we confuse the two,
for example the list of tabs to show in Properties uses a different
icon than the actual category icon. This PR fixes the complaint by
using the correct icon for each of these purposes.

Pull Request: https://projects.blender.org/blender/blender/pulls/147652
This commit is contained in:
Harley Acheson
2025-10-08 23:04:11 +02:00
committed by Harley Acheson
parent 765e38677a
commit 2eaac0ad74
3 changed files with 3 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ class PROPERTIES_PT_options(Panel):
("show_properties_view_layer", "View Layer", 'RENDERLAYERS'),
("show_properties_scene", "Scene", 'SCENE_DATA'),
("show_properties_world", "World", 'WORLD'),
("show_properties_collection", "Collection", 'OUTLINER_COLLECTION'),
("show_properties_collection", "Collection", 'GROUP'),
("show_properties_object", "Object", 'OBJECT_DATA'),
("show_properties_modifiers", "Modifiers", 'MODIFIER'),
("show_properties_effects", "Effects", 'SHADERFX'),

View File

@@ -1379,7 +1379,7 @@ class USERPREF_PT_theme_collection_colors(ThemePanel, CenterAlignMixIn, Panel):
def draw_header(self, _context):
layout = self.layout
layout.label(icon='OUTLINER_COLLECTION')
layout.label(icon='GROUP')
def draw_centered(self, context, layout):
theme = context.preferences.themes[0]

View File

@@ -827,7 +827,7 @@ void RNA_def_collections(BlenderRNA *brna)
srna = RNA_def_struct(brna, "Collection", "ID");
RNA_def_struct_ui_text(srna, "Collection", "Collection of Object data-blocks");
RNA_def_struct_ui_icon(srna, ICON_OUTLINER_COLLECTION);
RNA_def_struct_ui_icon(srna, ICON_GROUP);
/* This is done on save/load in `readfile.cc`,
* removed if no objects are in the collection and not in a scene. */
RNA_def_struct_clear_flag(srna, STRUCT_ID_REFCOUNT);