Cleanup: spelling in comments
This commit is contained in:
@@ -321,7 +321,7 @@ TEST_F(ActionLayersTest, slot_remove)
|
||||
}
|
||||
|
||||
{ /* Removing an in-use slot doesn't un-assign it from its users.
|
||||
* This is not that important, but it covers the current behaviour. */
|
||||
* This is not that important, but it covers the current behavior. */
|
||||
Slot &slot = action->slot_add_for_id(cube->id);
|
||||
ASSERT_EQ(assign_action_and_slot(action, &slot, cube->id), ActionSlotAssignmentResult::OK);
|
||||
|
||||
|
||||
@@ -115,9 +115,9 @@ static bAction *find_related_action(Main &bmain, ID &id)
|
||||
}
|
||||
|
||||
case ID_KE: {
|
||||
/* Shapekeys. */
|
||||
/* Shape-keys. */
|
||||
Key *key = (Key *)related_id;
|
||||
/* Shapekeys are not embedded but there is currently no way to reuse them. */
|
||||
/* Shape-keys are not embedded but there is currently no way to reuse them. */
|
||||
BLI_assert(ID_REAL_USERS(related_id) == 1);
|
||||
related_ids.append_non_duplicates(key->from);
|
||||
break;
|
||||
@@ -172,7 +172,7 @@ static bAction *find_related_action(Main &bmain, ID &id)
|
||||
|
||||
Key *key = BKE_key_from_id(related_id);
|
||||
if (key) {
|
||||
/* No check for multi user because the Shapekey cannot be shared. */
|
||||
/* No check for multi user because the shape-key cannot be shared. */
|
||||
BLI_assert(ID_REAL_USERS(&key->id) == 1);
|
||||
related_ids.append_non_duplicates(&key->id);
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ enum {
|
||||
/** Create data-block outside of any main database -
|
||||
* similar to 'localize' functions of materials etc. */
|
||||
LIB_ID_CREATE_NO_MAIN = 1 << 0,
|
||||
/** Do not affect user refcount of data-blocks used by new one
|
||||
/** Do not affect user reference-count of data-blocks used by new one
|
||||
* (which also gets zero user-count then).
|
||||
* Implies LIB_ID_CREATE_NO_MAIN. */
|
||||
LIB_ID_CREATE_NO_USER_REFCOUNT = 1 << 1,
|
||||
@@ -226,7 +226,7 @@ void BKE_libblock_copy_ex(Main *bmain, const ID *id, ID **new_id_p, int orig_fla
|
||||
* only.
|
||||
*
|
||||
* \param owner_library: the Library to 'assign' the newly created ID to. Use `nullptr` to make ID
|
||||
* not use any library (i.e. become a local ID). Use std::nullopt for default behavior (i.e.
|
||||
* not use any library (i.e. become a local ID). Use #std::nullopt for default behavior (i.e.
|
||||
* behavior of the #BKE_libblock_copy_ex function).
|
||||
* \param new_owner_id: When copying an embedded ID, the owner ID of the new copy. Should be
|
||||
* `nullptr` for regular ID copying, or in case the owner ID is not (yet) known.
|
||||
@@ -299,7 +299,7 @@ enum {
|
||||
/** Do not try to remove freed ID from given Main (passed Main may be NULL). */
|
||||
LIB_ID_FREE_NO_MAIN = 1 << 0,
|
||||
/**
|
||||
* Do not affect user refcount of data-blocks used by freed one.
|
||||
* Do not affect user reference-count of data-blocks used by freed one.
|
||||
* Implies LIB_ID_FREE_NO_MAIN.
|
||||
*/
|
||||
LIB_ID_FREE_NO_USER_REFCOUNT = 1 << 1,
|
||||
@@ -520,12 +520,12 @@ bool BKE_id_copy_is_allowed(const ID *id);
|
||||
*/
|
||||
ID *BKE_id_copy_ex(Main *bmain, const ID *id, ID **new_id_p, int flag);
|
||||
/**
|
||||
* Enable coying non-local data into libraries.
|
||||
* Enable copying non-local data into libraries.
|
||||
*
|
||||
* See #BKE_id_copy_ex for details.
|
||||
*
|
||||
* \param owner_library: the Library to 'assign' the newly created ID to. Use `nullptr` to make ID
|
||||
* not use any library (i.e. become a local ID). Use std::nullopt for default behavior (i.e.
|
||||
* not use any library (i.e. become a local ID). Use #std::nullopt for default behavior (i.e.
|
||||
* behavior of the #BKE_id_copy_ex function).
|
||||
* \param new_owner_id: When copying an embedded ID, the owner ID of the new copy. Should be
|
||||
* `nullptr` for regular ID copying, or in case the owner ID is not (yet) known.
|
||||
|
||||
@@ -180,7 +180,7 @@ static void rna_Area_type_update(bContext *C, PointerRNA *ptr)
|
||||
}
|
||||
|
||||
/* The set of visible geometry nodes gizmos depends on the visible node editors. So if a node
|
||||
* editor becomes visible/invisble, the gizmos have to be updated. */
|
||||
* editor becomes visible/invisible, the gizmos have to be updated. */
|
||||
WM_main_add_notifier(NC_NODE | ND_NODE_GIZMO, nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user