Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-19 14:55:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-19 14:55:31 +0300
commitae0ed5e9d57f1e74cdc689307c090f0875c07e45 (patch)
tree683b64b3b63e5889b0f156ed79fd74484b7ac88c /source/blender
parent9affa8450a3eadc40d4def539c29986320e73298 (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')
-rw-r--r--source/blender/makesrna/intern/rna_smoke.c1
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
}