Cleanup: spelling

This commit is contained in:
2020-09-29 13:58:16 +10:00
parent b150071ece
commit 58b8724a48
4 changed files with 13 additions and 14 deletions

View File

@@ -167,14 +167,14 @@ AnimData *BKE_animdata_add_id(ID *id)
/* Action Setter --------------------------------------- */ /* Action Setter --------------------------------------- */
/** /**
* Called when user tries to change the active action of an AnimData block * Called when user tries to change the active action of an #AnimData block
* (via RNA, Outliner, etc.) * (via RNA, Outliner, etc.)
* *
* \param reports can be NULL. * \param reports: Can be NULL.
* \param id the owner of the animation data * \param id: The owner of the animation data
* \param act the Action to set, or NULL to clear. * \param act: The Action to set, or NULL to clear.
* *
* Return true when the action was succesfully updated, false otherwise. * \return true when the action was successfully updated, false otherwise.
*/ */
bool BKE_animdata_set_action(ReportList *reports, ID *id, bAction *act) bool BKE_animdata_set_action(ReportList *reports, ID *id, bAction *act)
{ {

View File

@@ -146,7 +146,7 @@ bool RNA_property_copy(
PropertyRNA *prop_src = prop; PropertyRNA *prop_src = prop;
/* Ensure we get real property data, /* Ensure we get real property data,
* be it an actual RNA property, or an IDProperty in disguise. */ * be it an actual RNA property, or an #IDProperty in disguise. */
prop_dst = rna_ensure_property_realdata(&prop_dst, ptr); prop_dst = rna_ensure_property_realdata(&prop_dst, ptr);
prop_src = rna_ensure_property_realdata(&prop_src, fromptr); prop_src = rna_ensure_property_realdata(&prop_src, fromptr);
@@ -916,10 +916,10 @@ static void rna_property_override_apply_ex(Main *bmain,
/* This is rather fragile, but the fact that local override IDs may have a different name /* This is rather fragile, but the fact that local override IDs may have a different name
* than their linked reference makes it necessary. * than their linked reference makes it necessary.
* Basically, here we are considering that if we cannot find the original linked ID in * Basically, here we are considering that if we cannot find the original linked ID in
* the local override we are (re-)applying the operations, then it may be because soe of * the local override we are (re-)applying the operations, then it may be because of
* those operations have already been applied, and we may already have the local ID * those operations have already been applied, and we may already have the local ID
* pointer we want to set. * pointer we want to set.
* This happens e.g. during resync of an override, since we have already remapped all ID * This happens e.g. during re-sync of an override, since we have already remapped all ID
* pointers to their expected values. * pointers to their expected values.
* In that case we simply try to get the property from the local expected name. */ * In that case we simply try to get the property from the local expected name. */
} }

View File

@@ -1779,7 +1779,7 @@ int rna_property_override_diff_default(Main *bmain,
if (use_collection_insertion) { if (use_collection_insertion) {
/* We need to clean up all possible existing insertion operations, and then re-generate /* We need to clean up all possible existing insertion operations, and then re-generate
* them, otherwise we'd end up with a mess of opops every time something changes. */ * them, otherwise we'd end up with a mess of opop's every time something changes. */
op = BKE_lib_override_library_property_find(override, rna_path); op = BKE_lib_override_library_property_find(override, rna_path);
if (op != NULL) { if (op != NULL) {
LISTBASE_FOREACH_MUTABLE (IDOverrideLibraryPropertyOperation *, opop, &op->operations) { LISTBASE_FOREACH_MUTABLE (IDOverrideLibraryPropertyOperation *, opop, &op->operations) {

View File

@@ -793,15 +793,14 @@ void WM_OT_lasso_gesture(wmOperatorType *ot)
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
/** \name Straight Line Gesture /** \name Straight Line Gesture
* *
* Gesture defined by the start and end points of a line that is created between the posistion of * Gesture defined by the start and end points of a line that is created between the position of
* the initial event and the position of the current event. * the initial event and the position of the current event.
* *
* Straight Line Gesture has two modal callbacks depending on the tool that is being implemented: a * Straight Line Gesture has two modal callbacks depending on the tool that is being implemented: a
* regular modal callback intended to update the data during the execution of the gesture and a * regular modal callback intended to update the data during the execution of the gesture and a
* oneshot callback that only updates the data once when the gesture finishes. * one-shot callback that only updates the data once when the gesture finishes.
*
* It stores 4 values (xstart, ystart, xend, yend).
* *
* It stores 4 values: `xstart, ystart, xend, yend`.
* \{ */ * \{ */
static bool gesture_straightline_apply(bContext *C, wmOperator *op) static bool gesture_straightline_apply(bContext *C, wmOperator *op)
@@ -902,7 +901,7 @@ int WM_gesture_straightline_modal(bContext *C, wmOperator *op, const wmEvent *ev
} }
/** /**
* This modal oneshot callback only calls exec once after the gesture finishes without any updates * This modal one-shot callback only calls exec once after the gesture finishes without any updates
* during the gesture execution. Should be used for operations that are intended to be applied once * during the gesture execution. Should be used for operations that are intended to be applied once
* without real time preview (like a trimming tool that only applies the bisect operation once * without real time preview (like a trimming tool that only applies the bisect operation once
* after finishing the gesture as the bisect operation is too heavy to be computed in real time for * after finishing the gesture as the bisect operation is too heavy to be computed in real time for