diff options
author | Julian Eisel <julian@blender.org> | 2022-04-26 23:20:37 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-04-26 23:20:37 +0300 |
commit | 3210cb0af5971c3df457d507e36280ebccd7cfaf (patch) | |
tree | 26e667a2547268a822b0de5422773a5766fc545c | |
parent | 50e38a066c2ff14c22a9bb15b3a94788fb319861 (diff) |
Address points from reviewtemp-outliner-library-override-hierarchy
-rw-r--r-- | source/blender/editors/space_outliner/outliner_utils.cc | 12 | ||||
-rw-r--r-- | source/blender/editors/util/ed_util_ops.cc | 3 |
2 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/editors/space_outliner/outliner_utils.cc b/source/blender/editors/space_outliner/outliner_utils.cc index 4fbaf47e0f5..4b947154864 100644 --- a/source/blender/editors/space_outliner/outliner_utils.cc +++ b/source/blender/editors/space_outliner/outliner_utils.cc @@ -324,11 +324,13 @@ float outliner_right_columns_width(const SpaceOutliner *space_outliner) case SO_LIBRARIES: return 0.0f; case SO_OVERRIDES_LIBRARY: - if (space_outliner->lib_override_view_mode == SO_LIB_OVERRIDE_VIEW_PROPERTIES) { - num_columns = OL_RNA_COL_SIZEX / UI_UNIT_X; - } - else if (space_outliner->lib_override_view_mode == SO_LIB_OVERRIDE_VIEW_HIERARCHIES) { - num_columns = 1; + switch ((eSpaceOutliner_LibOverrideViewMode)space_outliner->lib_override_view_mode) { + case SO_LIB_OVERRIDE_VIEW_PROPERTIES: + num_columns = OL_RNA_COL_SIZEX / UI_UNIT_X; + break; + case SO_LIB_OVERRIDE_VIEW_HIERARCHIES: + num_columns = 1; + break; } break; case SO_ID_ORPHANS: diff --git a/source/blender/editors/util/ed_util_ops.cc b/source/blender/editors/util/ed_util_ops.cc index 12e066b8be8..803e65590a0 100644 --- a/source/blender/editors/util/ed_util_ops.cc +++ b/source/blender/editors/util/ed_util_ops.cc @@ -329,8 +329,7 @@ static void ED_OT_lib_id_override_editable_toggle(wmOperatorType *ot) { /* identifiers */ ot->name = "Toggle Library Override Editable"; - ot->description = - "Set if this linked data-block can be changed in the UI through library overrides"; + ot->description = "Set if this library override data-block can be edited"; ot->idname = "ED_OT_lib_id_override_editable_toggle"; /* api callbacks */ |