From ae0ed5e9d57f1e74cdc689307c090f0875c07e45 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 19 Jun 2015 13:55:31 +0200 Subject: 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. --- source/blender/makesrna/intern/rna_smoke.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_smoke.c') diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c index 03fca130047..ba1cf2f51e7 100644 --- a/source/blender/makesrna/intern/rna_smoke.c +++ b/source/blender/makesrna/intern/rna_smoke.c @@ -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 } -- cgit v1.2.3