[Bf-blender-cvs] [ffb79936905] master: UI: Improve naming for Collections Enable/Disable
William Reynish
noreply at git.blender.org
Tue May 14 15:13:19 CEST 2019
Commit: ffb79936905326b9a7eb9e21b9bfc9000e3f5aa0
Author: William Reynish
Date: Tue May 14 15:12:41 2019 +0200
Branches: master
https://developer.blender.org/rBffb79936905326b9a7eb9e21b9bfc9000e3f5aa0
UI: Improve naming for Collections Enable/Disable
- Fix 'ddisable' typo
- Use clearer names for the operators in the Collections context menu
Instead of Set Exclude / Clear Exclude, we now use Enable in View Layer / Disable from View Layer
===================================================================
M source/blender/editors/space_outliner/outliner_collections.c
M source/blender/makesrna/intern/rna_space.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c
index 99c98f7af8c..18723961a52 100644
--- a/source/blender/editors/space_outliner/outliner_collections.c
+++ b/source/blender/editors/space_outliner/outliner_collections.c
@@ -855,7 +855,7 @@ static int collection_view_layer_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_collection_exclude_set(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Set Exclude";
+ ot->name = "Disable from View Layer";
ot->idname = "OUTLINER_OT_collection_exclude_set";
ot->description = "Exclude collection from the active view layer";
@@ -870,7 +870,7 @@ void OUTLINER_OT_collection_exclude_set(wmOperatorType *ot)
void OUTLINER_OT_collection_exclude_clear(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Clear Exclude";
+ ot->name = "Enable in View Layer";
ot->idname = "OUTLINER_OT_collection_exclude_clear";
ot->description = "Include collection in the active view layer";
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index b425dce86f0..e73b7baa30f 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -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/ddisable");
+ RNA_def_property_ui_text(prop, "Enabled/Disabled", "Enable or disable Collections from View Layer");
RNA_def_property_ui_icon(prop, ICON_CHECKBOX_HLT, 0);
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_OUTLINER, NULL);
More information about the Bf-blender-cvs
mailing list