diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-11 15:36:49 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-11 15:36:49 +0300 |
commit | d1b14e7878386fa80f9a7e7fb2a428ec8f36ca91 (patch) | |
tree | 9f466ba9a90cc1e88549c740d1155deb9a62ecd8 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | 4134e4f3ae1d2c6285283662175ebd195856f298 (diff) |
Bugfix, own testing
When pressure was zero, a sculpt brush was still being executed
with step amount divided by zero, and thus entering eternal loop.
Maybe tablet-specific this but I wonder how this never got reported...
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 6429a70515b..c0399fadb90 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -306,6 +306,7 @@ static void sculpt_brush_test_init(SculptSession *ss, SculptBrushTest *test) { test->radius_squared= ss->cache->radius_squared; copy_v3_v3(test->location, ss->cache->location); + test->dist= 0.0f; /* just for initialize */ } static int sculpt_brush_test(SculptBrushTest *test, float co[3]) |