BLI_bvhtree_free(bmtree->tree);
if (bmtree->cos_cage && bmtree->cos_cage_free) {
- MEM_freeN(bmtree->cos_cage);
+ MEM_freeN((void *)bmtree->cos_cage);
}
MEM_freeN(bmtree);
ED_region_tag_redraw(kcd->ar);
if (kcd->cagecos)
- MEM_freeN(kcd->cagecos);
+ MEM_freeN((void *)kcd->cagecos);
if (kcd->linehits)
MEM_freeN(kcd->linehits);
if (!(node_from->inputs.first == NULL && !(node_from->typeinfo->flag & NODE_OPTIONS)))
node_from = NULL;
- if (node_prev && node_prev->type == type && node_link_item_compare(node_prev, item))
- {
+ if (node_prev && node_prev->type == type && node_link_item_compare(node_prev, item)) {
/* keep the previous node if it's the same type */
node_from = node_prev;
}
int i;
for (ngroup = arg->bmain->nodetree.first; ngroup; ngroup = ngroup->id.next) {
- ListBase *lb = (in_out==SOCK_IN ? &ngroup->inputs : &ngroup->outputs);
+ ListBase *lb = ((in_out == SOCK_IN) ? &ngroup->inputs : &ngroup->outputs);
totitems += BLI_countlist(lb);
}
/* not for sets, duplicators or picking */
if (dflag == 0 && (v3d->flag & V3D_HIDE_HELPLINES) == 0 && (v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) {
ListBase *list;
- RigidBodyCon *rbc = ob ? ob->rigidbody_constraint : NULL;
+ RigidBodyCon *rbc = ob->rigidbody_constraint;
/* draw hook center and offset line */
- if (ob != scene->obedit) draw_hooks(ob);
-
+ if (ob != scene->obedit)
+ draw_hooks(ob);
+
/* help lines and so */
if (ob != scene->obedit && ob->parent && (ob->parent->lay & v3d->lay)) {
setlinestyle(3);