Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/string_utils.c
| Context not available. | |||||
| /* We first check the case with a .### extension, let's find the last period */ | /* We first check the case with a .### extension, let's find the last period */ | ||||
| if (isdigit(r_name[len - 1])) { | if (isdigit(r_name[len - 1])) { | ||||
| index = strrchr(r_name, '.'); // last occurrence | index = strrchr(r_name, '.'); // last occurrence | ||||
| if (index && isdigit(index[1])) { // doesnt handle case bone.1abc2 correct..., whatever! | if (index && isdigit(index[1])) { // doesn't handle case bone.1abc2 correct..., whatever! | ||||
| if (strip_number == false) { | if (strip_number == false) { | ||||
| BLI_strncpy(number, index, name_len); | BLI_strncpy(number, index, name_len); | ||||
| } | } | ||||
| Context not available. | |||||