T64607: Outliner UI Tooltips
In the outliner we don't have yet a clear distinction for the users of when to use each of the visibility settings. This changes that by properly naming the property and their tooltips. I'm also unifying the naming between the rna properties and the outliner for collections and objects (e.g., so collection and object hide_select have the same tooltips everywhere). The API did not change.
This commit is contained in:
parent
913db2e8a4
commit
9b80318a28
|
@ -1282,7 +1282,7 @@ static void outliner_draw_restrictbuts(uiBlock *block,
|
|||
0,
|
||||
0,
|
||||
0,
|
||||
TIP_("Hide/Show collection in viewport\n"
|
||||
TIP_("Temporarily hide in viewport\n"
|
||||
"* Ctrl to isolate collection\n"
|
||||
"* Shift to set/unset inside collections and objects"));
|
||||
UI_but_func_set(bt,
|
||||
|
@ -1308,7 +1308,7 @@ static void outliner_draw_restrictbuts(uiBlock *block,
|
|||
0,
|
||||
0,
|
||||
0,
|
||||
TIP_("Mask out/in objects in collection from view layer\n"
|
||||
TIP_("Mask out objects in collection from view layer\n"
|
||||
"* Ctrl to isolate collection\n"
|
||||
"* Shift to set/unset inside collections"));
|
||||
UI_but_func_set(bt,
|
||||
|
@ -1363,7 +1363,7 @@ static void outliner_draw_restrictbuts(uiBlock *block,
|
|||
0,
|
||||
0,
|
||||
0,
|
||||
TIP_("Disable/Enable collection in viewport\n"
|
||||
TIP_("Globally disable in viewports\n"
|
||||
"* Ctrl to isolate collection\n"
|
||||
"* Shift to set/unset inside collections and objects"));
|
||||
if (layer_collection != NULL) {
|
||||
|
@ -1397,7 +1397,7 @@ static void outliner_draw_restrictbuts(uiBlock *block,
|
|||
0,
|
||||
0,
|
||||
0,
|
||||
TIP_("Disable/Enable collection in renders\n"
|
||||
TIP_("Globally disable in renders\n"
|
||||
"* Ctrl to isolate collection\n"
|
||||
"* Shift to set/unset inside collections and objects"));
|
||||
if (layer_collection != NULL) {
|
||||
|
@ -1429,7 +1429,7 @@ static void outliner_draw_restrictbuts(uiBlock *block,
|
|||
0,
|
||||
0,
|
||||
0,
|
||||
TIP_("Disable/Enable collection for viewport selection\n"
|
||||
TIP_("Disable selection in viewport\n"
|
||||
"* Ctrl to isolate collection\n"
|
||||
"* Shift to set/unset inside collections and objects"));
|
||||
if (layer_collection != NULL) {
|
||||
|
@ -3307,7 +3307,7 @@ void draw_outliner(const bContext *C)
|
|||
|
||||
UI_block_emboss_set(block, UI_EMBOSS);
|
||||
|
||||
/* draw edit buttons if nessecery */
|
||||
/* Draw edit buttons if necessary. */
|
||||
if (te_edit) {
|
||||
outliner_buttons(C, block, ar, te_edit);
|
||||
}
|
||||
|
|
|
@ -405,7 +405,7 @@ void RNA_def_collections(BlenderRNA *brna)
|
|||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, -1);
|
||||
RNA_def_property_ui_text(prop, "Disable Select", "Disable collection for viewport selection");
|
||||
RNA_def_property_ui_text(prop, "Disable Selection", "Disable selection in viewport");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_Collection_flag_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_viewport", PROP_BOOLEAN, PROP_NONE);
|
||||
|
@ -413,7 +413,7 @@ void RNA_def_collections(BlenderRNA *brna)
|
|||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_icon(prop, ICON_LINKED, -1);
|
||||
RNA_def_property_ui_text(prop, "Hide Instance", "Disable collection in viewport");
|
||||
RNA_def_property_ui_text(prop, "Disable in Viewports", "Globally disable in viewports");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_Collection_flag_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_render", PROP_BOOLEAN, PROP_NONE);
|
||||
|
@ -421,7 +421,7 @@ void RNA_def_collections(BlenderRNA *brna)
|
|||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, -1);
|
||||
RNA_def_property_ui_text(prop, "Disable Render", "Disable collection in renders");
|
||||
RNA_def_property_ui_text(prop, "Disable in Renders", "Globally disable in renders");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_Collection_flag_update");
|
||||
}
|
||||
|
||||
|
|
|
@ -296,7 +296,7 @@ static void rna_def_layer_collection(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "exclude", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", LAYER_COLLECTION_EXCLUDE);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Exclude", "Exclude collection from view layer");
|
||||
RNA_def_property_ui_text(prop, "Exclude from View Layer", "Exclude from view layer");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_icon(prop, ICON_CHECKBOX_HLT, -1);
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER, "rna_LayerCollection_exclude_update");
|
||||
|
@ -323,8 +323,7 @@ static void rna_def_layer_collection(BlenderRNA *brna)
|
|||
RNA_def_property_boolean_sdna(prop, NULL, "flag", LAYER_COLLECTION_RESTRICT_VIEW);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_icon(prop, ICON_HIDE_OFF, -1);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Disable Viewport", "Disable collection in viewport for this view layer");
|
||||
RNA_def_property_ui_text(prop, "Hide in Viewport", "Temporarily hide in viewport");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_LayerCollection_update");
|
||||
|
||||
/* Run-time flags. */
|
||||
|
@ -410,8 +409,7 @@ static void rna_def_object_base(BlenderRNA *brna)
|
|||
RNA_def_property_boolean_sdna(prop, NULL, "flag", BASE_HIDDEN);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_icon(prop, ICON_HIDE_OFF, -1);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Disable Viewport", "Disable object base in viewport for this view layer");
|
||||
RNA_def_property_ui_text(prop, "Hide in Viewport", "Temporarily hide in viewport");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_ObjectBase_hide_viewport_update");
|
||||
}
|
||||
|
|
|
@ -2803,7 +2803,7 @@ static void rna_def_object(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "hide_viewport", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_INSTANCE);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_text(prop, "Disable View", "Disable object in the viewport");
|
||||
RNA_def_property_ui_text(prop, "Disable in Viewports", "Globally disable in viewports");
|
||||
RNA_def_property_ui_icon(prop, ICON_LINKED, -1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
|
||||
|
||||
|
@ -2811,14 +2811,14 @@ static void rna_def_object(BlenderRNA *brna)
|
|||
RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_SELECT);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_text(prop, "Disable Select", "Disable object selection in the viewport");
|
||||
RNA_def_property_ui_text(prop, "Disable Selection", "Disable selection in viewport");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, -1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_render", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_RENDER);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_text(prop, "Disable Render", "Disable object in renders");
|
||||
RNA_def_property_ui_text(prop, "Disable in Renders", "Globally disable in renders");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, -1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
|
||||
|
||||
|
|
|
@ -2784,7 +2784,7 @@ static void rna_def_space_outliner(BlenderRNA *brna)
|
|||
/* Granular restriction column option. */
|
||||
prop = RNA_def_property(srna, "show_restrict_column_enable", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "show_restrict_flags", SO_RESTRICT_ENABLE);
|
||||
RNA_def_property_ui_text(prop, "Enabled/Disabled", "Enable or disable Collections from View Layer");
|
||||
RNA_def_property_ui_text(prop, "Exclude from View Layer", "Exclude from view layer");
|
||||
RNA_def_property_ui_icon(prop, ICON_CHECKBOX_HLT, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
|
||||
|
||||
|
@ -2794,21 +2794,21 @@ static void rna_def_space_outliner(BlenderRNA *brna)
|
|||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_restrict_column_instance", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "show_restrict_flags", SO_RESTRICT_INSTANCE);
|
||||
RNA_def_property_ui_text(prop, "Instance Visibility", "Instance visibility");
|
||||
RNA_def_property_ui_icon(prop, ICON_LINKED, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_restrict_column_viewport", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "show_restrict_flags", SO_RESTRICT_VIEWPORT);
|
||||
RNA_def_property_ui_text(prop, "Viewport Visibility", "Viewport visibility");
|
||||
RNA_def_property_ui_text(prop, "Hide in Viewport", "Temporarily hide in viewport");
|
||||
RNA_def_property_ui_icon(prop, ICON_HIDE_OFF, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_restrict_column_instance", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "show_restrict_flags", SO_RESTRICT_INSTANCE);
|
||||
RNA_def_property_ui_text(prop, "Disable in Viewports", "Globally disable in viewports");
|
||||
RNA_def_property_ui_icon(prop, ICON_LINKED, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_restrict_column_render", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "show_restrict_flags", SO_RESTRICT_RENDER);
|
||||
RNA_def_property_ui_text(prop, "Render Visibility", "Render visibility");
|
||||
RNA_def_property_ui_text(prop, "Disable in Renders", "Globally disable in renders");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue