bugfix for [32368] Added controllers don't count over 10
Blender original code (NaN likely) was relying on strcmp to sort the list of controllers. As it happens, in strcmp 10 < 2, thus the list was never in the right order. The curious thing is that in 2.49 it worked, but I think it did because the make_unique_prop_names function was called twice. Strange ;) The solution is to use blender BLI_natstrcmp to do natural sorting
This commit is contained in:
@@ -109,7 +109,7 @@ static int vergname(const void *v1, const void *v2)
|
||||
x1= (char **)v1;
|
||||
x2= (char **)v2;
|
||||
|
||||
return strcmp(*x1, *x2);
|
||||
return BLI_natstrcmp(*x1, *x2);
|
||||
}
|
||||
|
||||
void make_unique_prop_names(bContext *C, char *str)
|
||||
|
||||
Reference in New Issue
Block a user