fix error in node template and quiet warning.
This commit is contained in:
parent
468ef74ed7
commit
81a509fa40
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue