fix error in node template and quiet warning.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 3 Jul 2012 21:03:39 +0000 (21:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 3 Jul 2012 21:03:39 +0000 (21:03 +0000)
release/scripts/templates/operator_node.py
source/blender/editors/curve/editcurve.c
source/blender/python/mathutils/mathutils_Matrix.c

index 9c19993a38a51450a178dc492722081df28cc3e0..b689ce7634e92fdf223d32d19fd0c12c090976b5 100644 (file)
@@ -1,7 +1,7 @@
 import bpy
 
 
-def main(operator, context):
+def main(context):
     space = context.space_data
     node_tree = space.node_tree
     node_active = context.active_node
index 3089d891541bfaf90ec70380a89b18b92da8bbe0..e8a71a35576cf19489325110cbfd4dae72f24a03 100644 (file)
@@ -3932,7 +3932,8 @@ static int make_segment_exec(bContext *C, wmOperator *op)
        ListBase *nubase = object_editcurve_get(obedit);
        Nurb *nu, *nu1 = NULL, *nu2 = NULL;
        BPoint *bp;
-       int a, ok = 0;
+       int ok = 0;
+       /* int a; */ /* UNUSED */
 
        /* first decide if this is a surface merge! */
        if (obedit->type == OB_SURF) nu = nubase->first;
@@ -4040,7 +4041,7 @@ static int make_segment_exec(bContext *C, wmOperator *op)
                                MEM_freeN(nu1->bp);
                                nu1->bp = bp;
 
-                               a = nu1->pntsu + nu1->orderu;
+                               /* a = nu1->pntsu + nu1->orderu; */ /* UNUSED */
 
                                nu1->pntsu += nu2->pntsu;
                                BLI_remlink(nubase, nu2);
index 5c4c6414f395a93517a9106d51343b062bd4c17d..5f372abcc6904538f616e849d30d2f8822a9f4c1 100644 (file)
@@ -1640,7 +1640,7 @@ static PyObject *Matrix_richcmpr(PyObject *a, PyObject *b, int op)
  * sequence length */
 static int Matrix_len(MatrixObject *self)
 {
-       return (self->num_row);
+       return self->num_row;
 }
 /*----------------------------object[]---------------------------
  * sequence accessor (get)