quiet warnings
authorCampbell Barton <ideasman42@gmail.com>
Sun, 3 Jun 2012 10:33:28 +0000 (10:33 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 3 Jun 2012 10:33:28 +0000 (10:33 +0000)
release/scripts/startup/bl_operators/wm.py
source/blender/editors/sculpt_paint/paint_vertex.c

index 04071ecc72a74027f58dc49b1ab97d928b85e8f3..2d8d1a596937a2608890684bf4f376b437f10297 100644 (file)
@@ -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):
index 88cf9b1b0dda04746350f5ac225436e81d7f5d0c..eb79989b90b6a0e192bc825bbfcc6b72e70a8985 100644 (file)
@@ -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 */