diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-28 19:37:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-28 19:37:18 +0400 |
commit | 608dc78241c98341c8fb4cab12d73f148adf0471 (patch) | |
tree | 6b8897d8a1859565e6ed5e19ad40916c29ecddc9 /source/blender/editors | |
parent | 428debd9c8af81ed5870c70466d46a60646f49e3 (diff) |
warning cleanup: assignment to unused vars, r56359 changes how brush falloff is used slightly but this isn't so important so just remove falloff adjustment.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/render/render_preview.c | 3 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 6 | ||||
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 4 |
3 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/editors/render/render_preview.c b/source/blender/editors/render/render_preview.c index 2e88c243df6..23a3288209d 100644 --- a/source/blender/editors/render/render_preview.c +++ b/source/blender/editors/render/render_preview.c @@ -610,7 +610,8 @@ void ED_preview_draw(const bContext *C, void *idp, void *parentp, void *slotp, r /* start a new preview render job if signalled through sbuts->preview, * or if no render result was found and no preview render job is running */ if ((sbuts->spacetype == SPACE_BUTS && sbuts->preview) || - (!ok && !WM_jobs_test(wm, sa, WM_JOB_TYPE_RENDER_PREVIEW))) { + (!ok && !WM_jobs_test(wm, sa, WM_JOB_TYPE_RENDER_PREVIEW))) + { sbuts->preview = 0; ED_preview_shader_job(C, sa, id, parent, slot, newx, newy, PR_BUTS_RENDER); } diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 8efb765058d..b4507ecb6cc 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -3822,7 +3822,7 @@ static void *do_projectpaint_thread(void *ph_v) float mask = ((float)projPixel->mask) * (1.0f / 65535.0f); straight_uchar_to_premul_float(newColor_f, projPixel->newColor.ch); - mul_v4_v4fl(newColor_f, newColor_f, mask); + mul_v4_v4fl(newColor_f, newColor_f, mask); blend_color_mix_float(projPixel->pixel.f_pt, projPixel->origColor.f, newColor_f); @@ -3893,10 +3893,6 @@ static void *do_projectpaint_thread(void *ph_v) mask *= ((float)projPixel->mask) * (1.0f / 65535.0f); } else { - /* This brush dosnt accumulate so add some curve to the brushes falloff */ - falloff = 1.0f - falloff; - falloff = 1.0f - (falloff * falloff); - mask_short = (unsigned short)(projPixel->mask * mask); if (mask_short > projPixel->mask_max) { diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index cb94b2cc83a..b5c74eea30e 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -403,11 +403,11 @@ static void outliner_add_passes(SpaceOops *soops, TreeElement *tenla, ID *id, Sc #undef LOG2I -static int outliner_animdata_test(AnimData *adt) +static bool outliner_animdata_test(AnimData *adt) { if (adt) return (adt->action || adt->drivers.first || adt->nla_tracks.first); - return 0; + return false; } static void outliner_add_scene_contents(SpaceOops *soops, ListBase *lb, Scene *sce, TreeElement *te) |