diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-03 14:33:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-03 14:33:28 +0400 |
commit | 20e49e7177cbc10e3a4b45e6c32d5a3e447a935b (patch) | |
tree | c850dc32da610910ccfe6e719f6f25d7dbaf84fc | |
parent | 85b34cfcdebdcd1da8c8cce8503fea916d04b3cc (diff) |
quiet warnings
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 3 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 04071ecc72a..2d8d1a59693 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -845,10 +845,13 @@ class WM_OT_doc_view_manual(Operator): @staticmethod def _find_reference(rna_id, url_mapping): + print("online manual check for: '%s' ... " % rna_id, end="") from re import match for pattern, url_suffix in url_mapping: if match(pattern, rna_id): + print("match found:", pattern) return url_suffix + print("match not found") return None def execute(self, context): diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 88cf9b1b0dd..eb79989b90b 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1877,7 +1877,7 @@ static void do_weight_paint_vertex( /* use locks and/or multipaint */ float oldw; float neww; - float testw = 0; + /* float testw = 0; */ /* UNUSED */ float observedChange = 0; float change = 0; float oldChange = 0; @@ -1912,7 +1912,7 @@ static void do_weight_paint_vertex( if (change && tdw_prev->weight && tdw_prev->weight * change) { if (tdw->weight != tdw_prev->weight) { oldChange = tdw->weight / tdw_prev->weight; - testw = tdw_prev->weight * change; + /* testw = tdw_prev->weight * change; */ /* UNUSED */ if (observedChange > 0) { if (change > oldChange) { /* reset the weights and use the new change */ |