Cleanup: outdated/unhelpful comments

This commit is contained in:
Campbell Barton 2021-02-05 21:32:31 +11:00
parent f21b4e69b0
commit f8cbd333d6
9 changed files with 6 additions and 24 deletions

View File

@ -387,7 +387,7 @@ void bmo_average_vert_facedata_exec(BMesh *bm, BMOperator *op)
BMOIter siter; BMOIter siter;
BMIter iter; BMIter iter;
BMVert *v; BMVert *v;
BMLoop *l /* , *firstl = NULL */; BMLoop *l;
CDBlockBytes min, max; CDBlockBytes min, max;
int i; int i;

View File

@ -122,9 +122,6 @@ EditBone *ED_armature_ebone_add_primitive(Object *obedit_arm, float length, bool
return bone; return bone;
} }
/* previously addvert_armature */
/* the ctrl-click method */
/** /**
* Note this is already ported to multi-objects as it is. * Note this is already ported to multi-objects as it is.
* Since only the active bone is extruded even for single objects, * Since only the active bone is extruded even for single objects,

View File

@ -689,7 +689,7 @@ static void pose_slide_rest_pose_apply(bContext *C, tPoseSlideOp *pso)
/* Not strictly a transform, but custom properties contribute /* Not strictly a transform, but custom properties contribute
* to the pose produced in many rigs (e.g. the facial rigs used in Sintel). */ * to the pose produced in many rigs (e.g. the facial rigs used in Sintel). */
/* TODO Not implemented */ /* TODO Not implemented */
// pose_slide_apply_props(pso, pfl, "[\""); /* dummy " for texteditor bugs */ // pose_slide_apply_props(pso, pfl, "[\"");
} }
} }
@ -765,7 +765,7 @@ static void pose_slide_apply(bContext *C, tPoseSlideOp *pso)
if (ELEM(pso->channels, PS_TFM_ALL, PS_TFM_PROPS) && (pfl->oldprops)) { if (ELEM(pso->channels, PS_TFM_ALL, PS_TFM_PROPS) && (pfl->oldprops)) {
/* Not strictly a transform, but custom properties contribute /* Not strictly a transform, but custom properties contribute
* to the pose produced in many rigs (e.g. the facial rigs used in Sintel). */ * to the pose produced in many rigs (e.g. the facial rigs used in Sintel). */
pose_slide_apply_props(pso, pfl, "[\""); /* dummy " for texteditor bugs */ pose_slide_apply_props(pso, pfl, "[\"");
} }
} }

View File

@ -3905,7 +3905,7 @@ static float bm_edge_seg_isect(const float sco_a[2],
x12 = mouse_path[i][0]; x12 = mouse_path[i][0];
y12 = mouse_path[i][1]; y12 = mouse_path[i][1];
/* Perp. Distance from point to line */ /* Calculate the distance from point to line. */
if (m2 != MAXSLOPE) { if (m2 != MAXSLOPE) {
/* sqrt(m2 * m2 + 1); Only looking for change in sign. Skip extra math .*/ /* sqrt(m2 * m2 + 1); Only looking for change in sign. Skip extra math .*/
dist = (y12 - m2 * x12 - b2); dist = (y12 - m2 * x12 - b2);

View File

@ -4338,7 +4338,6 @@ static void project_paint_prepare_all_faces(ProjPaintState *ps,
continue; continue;
} }
/* tfbase here should be non-null! */
BLI_assert(mloopuv_base != NULL); BLI_assert(mloopuv_base != NULL);
if (is_face_sel && tpage) { if (is_face_sel && tpage) {

View File

@ -3020,7 +3020,6 @@ void VIEW3D_OT_view_all(wmOperatorType *ot)
* Move & Zoom the view to fit selected contents. * Move & Zoom the view to fit selected contents.
* \{ */ * \{ */
/* like a localview without local!, was centerview() in 2.4x */
static int viewselected_exec(bContext *C, wmOperator *op) static int viewselected_exec(bContext *C, wmOperator *op)
{ {
ARegion *region = CTX_wm_region(C); ARegion *region = CTX_wm_region(C);

View File

@ -20,12 +20,7 @@
/** \file /** \file
* \ingroup gpu * \ingroup gpu
* *
* GPU Frame-buffer * Private frame buffer API.
* - this is a wrapper for an OpenGL framebuffer object (FBO). in practice
* multiple FBO's may be created.
* - actual FBO creation & config is deferred until GPU_framebuffer_bind or
* GPU_framebuffer_check_valid to allow creation & config while another
* opengl context is bound (since FBOs are not shared between ogl contexts).
*/ */
#pragma once #pragma once

View File

@ -1,4 +1,3 @@
/* /*
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -20,13 +19,6 @@
/** \file /** \file
* \ingroup gpu * \ingroup gpu
*
* GPU Framebuffer
* - this is a wrapper for an OpenGL framebuffer object (FBO). in practice
* multiple FBO's may be created.
* - actual FBO creation & config is deferred until GPU_framebuffer_bind or
* GPU_framebuffer_check_valid to allow creation & config while another
* opengl context is bound (since FBOs are not shared between ogl contexts).
*/ */
#pragma once #pragma once

View File

@ -2337,7 +2337,7 @@ static int do_write_image_or_movie(Render *re,
printf(" (Saving: %s)\n", name); printf(" (Saving: %s)\n", name);
fputc('\n', stdout); fputc('\n', stdout);
fflush(stdout); /* needed for renderd !! (not anymore... (ton)) */ fflush(stdout);
return ok; return ok;
} }