code cleanup: remove double call to BKE_node_instance_key(), rename ruler (lots of tools are 3d :)), and redundant assignment.
This commit is contained in:
@@ -575,7 +575,6 @@ void bmo_reverse_uvs_exec(BMesh *bm, BMOperator *op)
|
||||
}
|
||||
|
||||
/* now that we have the uvs in the array, reverse! */
|
||||
i = 0;
|
||||
BM_ITER_ELEM_INDEX (lf, &l_iter, fs, BM_LOOPS_OF_FACE, i) {
|
||||
/* current loop uv is the previous loop uv */
|
||||
MLoopUV *luv = CustomData_bmesh_get(&bm->ldata, lf->head.data, CD_MLOOPUV);
|
||||
|
||||
@@ -1161,7 +1161,7 @@ void node_draw_nodetree(const bContext *C, ARegion *ar, SpaceNode *snode, bNodeT
|
||||
|
||||
/* draw foreground nodes, last nodes in front */
|
||||
for (a = 0, node = ntree->nodes.first; node; node = node->next, a++) {
|
||||
bNodeInstanceKey key = BKE_node_instance_key(parent_key, ntree, node);
|
||||
bNodeInstanceKey key;
|
||||
if (node->flag & NODE_BACKGROUND)
|
||||
continue;
|
||||
|
||||
|
||||
@@ -924,7 +924,7 @@ static int view3d_ruler_modal(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
void VIEW3D_OT_ruler(wmOperatorType *ot)
|
||||
{
|
||||
/* identifiers */
|
||||
ot->name = "3D Ruler & Protractor";
|
||||
ot->name = "Ruler/Protractor";
|
||||
ot->description = "Interactive ruler";
|
||||
ot->idname = "VIEW3D_OT_ruler";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user