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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-06-29 12:17:25 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-06-29 13:03:39 +0300
commit2def6f5568ee76a56a139799116c67cdcfc19814 (patch)
treefa85e36cd6e2a7aa5467fb671b47735f3fdc6160 /source/blender
parent784911a4a0efb2bb361b217a9348ca50608eb6bd (diff)
Fix T78415: Particle Edit mode Add brush with a radius > 181px crashes
Caused by short overflow, change to int instead. Maniphest Tasks: T78415 Differential Revision: https://developer.blender.org/D8148
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/physics/particle_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index ef5ed806c1e..457c8ba30e6 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4103,7 +4103,7 @@ static void brush_add_count_iter(void *__restrict iter_data_v,
BrushAddCountIterTLSData *tls = tls_v->userdata_chunk;
const int number = iter_data->number;
const short size = iter_data->size;
- const short size2 = size * size;
+ const int size2 = size * size;
float dmx, dmy;
if (number > 1) {
dmx = size;