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:
Sergey Sharybin 2011-09-02 17:58:09 +00:00
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)