Cleanup: improve confusing/incomplete code-comments
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user