diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-19 14:55:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-19 14:55:31 +0300 |
commit | ae0ed5e9d57f1e74cdc689307c090f0875c07e45 (patch) | |
tree | 683b64b3b63e5889b0f156ed79fd74484b7ac88c /source/blender/makesrna | |
parent | 9affa8450a3eadc40d4def539c29986320e73298 (diff) |
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.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_smoke.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 } |