From 4bf56b37ca98637c94bc1fc66c78f136ed709afb Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Fri, 3 Jul 2020 13:31:42 -0600 Subject: Cleanup: Use C-style comments in outliner files No functional changes. Convert all C++ style comments to C comments. Also capitalize and add full stops. The comments themselves were not cleaned up. Some could be removed or reworded. --- .../editors/space_outliner/outliner_select.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'source/blender/editors/space_outliner/outliner_select.c') diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 638f63cce62..8bf05c3018a 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -455,7 +455,7 @@ static eOLDrawState tree_element_active_material(bContext *C, /* we search for the object parent */ ob = (Object *)outliner_search_back(te, ID_OB); - // note: ob->matbits can be NULL when a local object points to a library mesh. + /* Note : ob->matbits can be NULL when a local object points to a library mesh. */ if (ob == NULL || ob != OBACT(view_layer) || ob->matbits == NULL) { return OL_DRAWSEL_NONE; /* just paranoia */ } @@ -465,7 +465,7 @@ static eOLDrawState tree_element_active_material(bContext *C, if (tes->idcode == ID_OB) { if (set != OL_SETSEL_NONE) { ob->actcol = te->index + 1; - ob->matbits[te->index] = 1; // make ob material active too + ob->matbits[te->index] = 1; /* Make ob material active too. */ } else { if (ob->actcol == te->index + 1) { @@ -479,7 +479,7 @@ static eOLDrawState tree_element_active_material(bContext *C, else { if (set != OL_SETSEL_NONE) { ob->actcol = te->index + 1; - ob->matbits[te->index] = 0; // make obdata material active too + ob->matbits[te->index] = 0; /* Make obdata material active too. */ } else { if (ob->actcol == te->index + 1) { @@ -762,14 +762,14 @@ static void tree_element_active_ebone__sel(bContext *C, bArmature *arm, EditBone if (sel) { ebone->flag |= BONE_SELECTED | BONE_ROOTSEL | BONE_TIPSEL; arm->act_edbone = ebone; - // flush to parent? + /* Flush to parent? */ if (ebone->parent && (ebone->flag & BONE_CONNECTED)) { ebone->parent->flag |= BONE_TIPSEL; } } else { ebone->flag &= ~(BONE_SELECTED | BONE_ROOTSEL | BONE_TIPSEL); - // flush to parent? + /* Flush to parent? */ if (ebone->parent && (ebone->flag & BONE_CONNECTED)) { ebone->parent->flag &= ~BONE_TIPSEL; } @@ -950,7 +950,7 @@ static eOLDrawState tree_element_active_sequence_dup(Scene *scene, return OL_DRAWSEL_NONE; } - // XXX select_single_seq(seq, 1); + /* XXX select_single_seq(seq, 1); */ p = ed->seqbasep->first; while (p) { if ((!p->strip) || (!p->strip->stripdata) || (p->strip->stripdata->name[0] == '\0')) { @@ -958,8 +958,8 @@ static eOLDrawState tree_element_active_sequence_dup(Scene *scene, continue; } - // if (STREQ(p->strip->stripdata->name, seq->strip->stripdata->name)) - // XXX select_single_seq(p, 0); + /* XXX: if (STREQ(p->strip->stripdata->name, seq->strip->stripdata->name)) select_single_seq(p, + * 0); */ p = p->next; } return OL_DRAWSEL_NONE; @@ -1160,7 +1160,7 @@ static void do_outliner_item_activate_tree_element(bContext *C, recursive && tselem->type == 0); } - if (tselem->type == 0) { // the lib blocks + if (tselem->type == 0) { /* The lib blocks. */ if (do_activate_data == false) { /* Only select in outliner. */ } @@ -1209,7 +1209,7 @@ static void do_outliner_item_activate_tree_element(bContext *C, DEG_id_tag_update(&tvc->scene->id, ID_RECALC_SELECT); WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, tvc->scene); } - else { // rest of types + else { /* Rest of types. */ tree_element_active(C, tvc, soops, te, OL_SETSEL_NORMAL, false); } } @@ -1372,7 +1372,7 @@ static int outliner_item_do_activate_from_cursor(bContext *C, return OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH; } else { - /* The row may also contain children, if one is hovered we want this instead of current te */ + /* The row may also contain children, if one is hovered we want this instead of current te. */ bool merged_elements = false; TreeElement *activate_te = outliner_find_item_at_x_in_row( soops, te, view_mval[0], &merged_elements); -- cgit v1.2.3