forked from bartvdbraak/blender
Fix crash caused by recently added assert about if string was set properly.
Memory Estimate is actually 31 characters length, str[31] is a null-terminator. Return length of 31 for memory estimate property. Returning proper length would lead to slowdown because of 2x iteration through vertices.
This commit is contained in:
parent
2fb2075c5b
commit
87cb3f8519
@ -184,7 +184,11 @@ static void rna_DomainFluidSettings_memory_estimate_get(PointerRNA *ptr, char *v
|
||||
|
||||
static int rna_DomainFluidSettings_memory_estimate_length(PointerRNA *ptr)
|
||||
{
|
||||
return 32;
|
||||
#ifdef DISABLE_ELBEEM
|
||||
return 0;
|
||||
#else
|
||||
return 31;
|
||||
#endif
|
||||
}
|
||||
|
||||
static char *rna_FluidSettings_path(PointerRNA *ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user