Merge branch 'blender-v3.3-release'

This commit is contained in:
Campbell Barton 2022-08-19 13:46:37 +10:00
commit 2a15040777
4 changed files with 11 additions and 7 deletions

View File

@ -830,8 +830,8 @@ static int override_idtemplate_create_exec(bContext *C, wmOperator *UNUSED(op))
* liboverride (note that in theory this remapping has already been done by code above), but
* only in case owner ID was already an existing liboverride.
*
* Otherwise, owner ID will also have been overridden, and remapped already to use itsoverride
* of the data too. */
* Otherwise, owner ID will also have been overridden, and remapped already to use it's
* override of the data too. */
RNA_id_pointer_create(id_override, &idptr);
RNA_property_pointer_set(&owner_ptr, prop, idptr, NULL);
RNA_property_update(C, &owner_ptr, prop);

View File

@ -887,8 +887,8 @@ static void template_id_liboverride_hierarchy_create(bContext *C,
* created liboverride (note that in theory this remapping has already been done by code
* above), but only in case owner ID was already an existing liboverride.
*
* Otherwise, owner ID will also have been overridden, and remapped already to use itsoverride
* of the data too. */
* Otherwise, owner ID will also have been overridden, and remapped already to use
* it's override of the data too. */
if (ID_IS_OVERRIDE_LIBRARY_REAL(owner_id)) {
RNA_id_pointer_create(id_override, idptr);
}

View File

@ -251,7 +251,7 @@ typedef struct ImBuf {
int refcounter;
/* some parameters to pass along for packing images */
/** Compressed image only used with PNG and EXR currently */
/** Compressed image only used with PNG and EXR currently. */
unsigned char *encodedbuffer;
/** Size of data written to `encodedbuffer`. */
unsigned int encodedsize;

View File

@ -704,12 +704,16 @@ const char *RNA_path_array_index_token_find(const char *rna_path, const Property
/* Valid 'array part' of a rna path can only have '[', ']' and digit characters.
* It may have more than one of those (e.g. `[12][1]`) in case of multi-dimensional arrays. */
int64_t rna_path_len = (int64_t)strlen(rna_path);
if (UNLIKELY(rna_path[0] == '\0')) {
return NULL;
}
size_t rna_path_len = (size_t)strlen(rna_path) - 1;
if (rna_path[rna_path_len] != ']') {
return NULL;
}
const char *last_valid_index_token_start = NULL;
for (rna_path_len--; rna_path_len >= 0; rna_path_len--) {
while (rna_path_len--) {
switch (rna_path[rna_path_len]) {
case '[':
if (rna_path_len <= 0 || rna_path[rna_path_len - 1] != ']') {