forked from bartvdbraak/blender
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:
parent
9affa8450a
commit
ae0ed5e9d5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user