diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-08 05:48:31 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-08 05:48:31 +0300 |
commit | 7b663976645973f15b243c101497626c590c2cde (patch) | |
tree | 6fb5ff51cc47a3c256fa84ea1a07acd71217f2af /source/blender/editors | |
parent | 901a03725ed58166e5b2401dfadd7c1cb7e490a2 (diff) |
Cleanup: spelling in comments, use C++ comments for disabled code
Diffstat (limited to 'source/blender/editors')
6 files changed, 10 insertions, 8 deletions
diff --git a/source/blender/editors/animation/keyframes_keylist.cc b/source/blender/editors/animation/keyframes_keylist.cc index 7dc3415c904..3356ef4d47d 100644 --- a/source/blender/editors/animation/keyframes_keylist.cc +++ b/source/blender/editors/animation/keyframes_keylist.cc @@ -811,7 +811,7 @@ static void add_bezt_to_keyblocks_list(AnimKeylist *keylist, BezTriple *bezt, co * may change order and then this assertion no longer holds. The effect is that the drawing * isn't perfect during the transform; the "constant value" bars aren't updated until the * transformation is confirmed. */ - /* BLI_assert(is_cfra_eq(col->cfra, bezt[0].vec[1][0])); */ + // BLI_assert(is_cfra_eq(col->cfra, bezt[0].vec[1][0])); compute_keyblock_data(&block, bezt, bezt + 1); diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 2577218d6a9..6b3f50549ef 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -4349,7 +4349,7 @@ static Base *mesh_separate_tagged( Base *base_new = ED_object_add_duplicate(bmain, scene, view_layer, base_old, dupflag); /* normally would call directly after but in this case delay recalc */ - /* DAG_relations_tag_update(bmain); */ + // DAG_relations_tag_update(bmain); /* new in 2.5 */ BKE_object_material_array_assign(bmain, @@ -4423,7 +4423,7 @@ static Base *mesh_separate_arrays(Main *bmain, Base *base_new = ED_object_add_duplicate(bmain, scene, view_layer, base_old, dupflag); /* normally would call directly after but in this case delay recalc */ - /* DAG_relations_tag_update(bmain); */ + // DAG_relations_tag_update(bmain); /* new in 2.5 */ BKE_object_material_array_assign(bmain, diff --git a/source/blender/editors/mesh/editmesh_undo.c b/source/blender/editors/mesh/editmesh_undo.c index 3bebcdc9bae..9c7d712a739 100644 --- a/source/blender/editors/mesh/editmesh_undo.c +++ b/source/blender/editors/mesh/editmesh_undo.c @@ -591,7 +591,8 @@ static void *undomesh_from_editmesh(UndoMesh *um, BMEditMesh *em, Key *key, Undo um->me.key = NULL; } - /* BM_mesh_validate(em->bm); */ /* for troubleshooting */ + /* Uncomment for troubleshooting. */ + // BM_mesh_validate(em->bm); BM_mesh_bm_to_me( NULL, diff --git a/source/blender/editors/object/object_add.cc b/source/blender/editors/object/object_add.cc index 7befad3b8d7..b8ffaf87118 100644 --- a/source/blender/editors/object/object_add.cc +++ b/source/blender/editors/object/object_add.cc @@ -3385,7 +3385,8 @@ Base *ED_object_add_duplicate( const int remap_flag = BKE_object_is_in_editmode(ob) ? ID_REMAP_FORCE_OBDATA_IN_EDITMODE : 0; BKE_libblock_relink_to_newid(bmain, &ob->id, remap_flag); - /* DAG_relations_tag_update(bmain); */ /* caller must do */ + /* Correct but the caller must do this. */ + // DAG_relations_tag_update(bmain); if (ob->data != nullptr) { DEG_id_tag_update_ex(bmain, (ID *)ob->data, ID_RECALC_EDITORS); diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index 8fcf967bce8..fdefcc6133e 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -2618,7 +2618,7 @@ static int outliner_animdata_operation_exec(bContext *C, wmOperator *op) nullptr); WM_event_add_notifier(C, NC_ANIMATION | ND_ANIMCHAN, nullptr); - /* ED_undo_push(C, "Refresh Drivers"); No undo needed - shouldn't have any impact? */ + // ED_undo_push(C, "Refresh Drivers"); /* No undo needed - shouldn't have any impact? */ break; case OUTLINER_ANIMOP_CLEAR_DRV: diff --git a/source/blender/editors/transform/transform_mode.c b/source/blender/editors/transform/transform_mode.c index 6162dfc9bb5..2fd81486bb6 100644 --- a/source/blender/editors/transform/transform_mode.c +++ b/source/blender/editors/transform/transform_mode.c @@ -1212,8 +1212,8 @@ void transform_mode_init(TransInfo *t, wmOperator *op, const int mode) } /* TODO(germano): Some of these operations change the `t->mode`. - * This can be bad for Redo. - * BLI_assert(t->mode == mode); */ + * This can be bad for Redo. */ + // BLI_assert(t->mode == mode); } void transform_mode_default_modal_orientation_set(TransInfo *t, int type) |