Cleanup: improve confusing/incomplete code-comments

This commit is contained in:
Campbell Barton
2025-08-08 06:41:04 +00:00
parent 1d6a0b7070
commit 062fcd00d1
7 changed files with 10 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ class AssetRepresentation;
class AssetLibrary {
eAssetLibraryType library_type_;
/**
* The name this asset library will be displayed in the UI as. Will also be used as a weak way
* The name this asset library will be displayed as in the UI. Will also be used as a weak way
* to identify an asset library (e.g. by #AssetWeakReference).
*/
std::string name_;

View File

@@ -213,7 +213,7 @@ bool BKE_tracking_track_has_enabled_marker_at_frame(struct MovieTrackingTrack *t
* \note frame number should be in clip space, not scene space.
*/
typedef enum eTrackClearAction {
/* Clear path from `ref_frame+1` up to the. */
/* Clear path from `ref_frame+1` up to the current frame. */
TRACK_CLEAR_UPTO,
/* Clear path from the beginning up to `ref_frame-1`. */
TRACK_CLEAR_REMAINED,

View File

@@ -486,7 +486,10 @@ struct ProjPixel {
short x_px, y_px;
/** if anyone wants to paint onto more than 65535 images they can bite me. */
/**
* Use a short to reduce memory use.
* This limits the total number of supported images to 65535 which seems reasonable.
*/
ushort image_index;
uchar bb_cell_index;

View File

@@ -1101,7 +1101,7 @@ wmOperatorStatus transformEvent(TransInfo *t, wmOperator *op, const wmEvent *eve
case TFM_MODAL_TRACKBALL:
case TFM_MODAL_ROTATE_NORMALS:
case TFM_MODAL_VERT_EDGE_SLIDE:
/* Only switch when. */
/* Only switch when supported. */
if (!transform_mode_is_changeable(t->mode)) {
break;
}

View File

@@ -916,7 +916,7 @@ static wmOperatorStatus uv_rip_exec(bContext *C, wmOperator *op)
float aspx, aspy;
{
/* Note that we only want to run this on the. */
/* Note that we only want to run this on the active object as this defines the UV image. */
Object *obedit = CTX_data_edit_object(C);
ED_uvedit_get_aspect(obedit, &aspx, &aspy);
}

View File

@@ -2865,7 +2865,7 @@ static PyObject *pyrna_prop_collection_subscript(BPy_PropertyRNA *self, PyObject
return pyrna_prop_collection_subscript_slice(self, start, stop);
}
if (PyTuple_Check(key)) {
/* Special case, for ID data-blocks we. */
/* Special case, for ID data-blocks. */
return pyrna_prop_collection_subscript_str_lib_pair(
self, key, "bpy_prop_collection[id, lib]", true);
}

View File

@@ -4046,7 +4046,7 @@ static eHandlerActionFlag wm_event_do_region_handlers(bContext *C, wmEvent *even
CTX_wm_region_set(C, region);
/* Call even on non mouse events, since the. */
/* Call even on non mouse events, since the handlers may still use this value. */
wm_region_mouse_co(C, event);
const wmWindowManager *wm = CTX_wm_manager(C);