RNA: Don't fill in color grid array when built without smoke

Array length is set to 0 in that case, so filling in first element is
likely to cause memory corruptions.
This commit is contained in:
Sergey Sharybin 2015-06-19 13:55:31 +02:00
parent 9affa8450a
commit ae0ed5e9d5
1 changed files with 0 additions and 1 deletions

View File

@ -264,7 +264,6 @@ static void rna_SmokeModifier_color_grid_get(PointerRNA *ptr, float *values)
BLI_rw_mutex_unlock(sds->fluid_mutex);
#else
(void)ptr;
memset(values, 0, 4 * sizeof(float));
#endif
}