Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_select.cc
| Show First 20 Lines • Show All 1,605 Lines • ▼ Show 20 Lines | if (outliner_is_co_within_restrict_columns(space_outliner, region, view_mval[0])) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| if (outliner_is_co_within_active_mode_column(C, space_outliner, view_mval)) { | if (outliner_is_co_within_active_mode_column(C, space_outliner, view_mval)) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| if (!(te = outliner_find_item_at_y(space_outliner, &space_outliner->tree, view_mval[1]))) { | if (!(te = outliner_find_item_at_y(space_outliner, &space_outliner->tree, view_mval[1]))) { | ||||
| if (deselect_all) { | if (deselect_all) { | ||||
| outliner_flag_set(&space_outliner->tree, TSE_SELECTED, false); | changed |= outliner_flag_set(&space_outliner->tree, TSE_SELECTED, false); | ||||
| changed = true; | |||||
| } | } | ||||
| } | } | ||||
| /* Don't allow toggle on scene collection */ | /* Don't allow toggle on scene collection */ | ||||
| else if ((TREESTORE(te)->type != TSE_VIEW_COLLECTION_BASE) && | else if ((TREESTORE(te)->type != TSE_VIEW_COLLECTION_BASE) && | ||||
| outliner_item_is_co_within_close_toggle(te, view_mval[0])) { | outliner_item_is_co_within_close_toggle(te, view_mval[0])) { | ||||
| return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; | return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; | ||||
| } | } | ||||
| else { | else { | ||||
| Show All 31 Lines | else { | ||||
| if (is_over_icon) { | if (is_over_icon) { | ||||
| outliner_set_properties_tab(C, activate_te, activate_tselem); | outliner_set_properties_tab(C, activate_te, activate_tselem); | ||||
| } | } | ||||
| } | } | ||||
| changed = true; | changed = true; | ||||
| } | } | ||||
| if (changed) { | if (!changed) { | ||||
| return OPERATOR_CANCELLED; | |||||
| } | |||||
| if (rebuild_tree) { | if (rebuild_tree) { | ||||
| ED_region_tag_redraw(region); | ED_region_tag_redraw(region); | ||||
| } | } | ||||
| else { | else { | ||||
| ED_region_tag_redraw_no_rebuild(region); | ED_region_tag_redraw_no_rebuild(region); | ||||
| } | } | ||||
| ED_outliner_select_sync_from_outliner(C, space_outliner); | ED_outliner_select_sync_from_outliner(C, space_outliner); | ||||
| } | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| /* Event can enter-key, then it opens/closes. */ | /* Event can enter-key, then it opens/closes. */ | ||||
| static int outliner_item_activate_invoke(bContext *C, wmOperator *op, const wmEvent *event) | static int outliner_item_activate_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| const bool extend = RNA_boolean_get(op->ptr, "extend"); | const bool extend = RNA_boolean_get(op->ptr, "extend"); | ||||
| ▲ Show 20 Lines • Show All 368 Lines • Show Last 20 Lines | |||||