Bugfix #5159
SHIFT+K clear vertexpaint didn't work for faceselect+paint mode. Calls to depsgraph were confused, now nicely centralized.
This commit is contained in:
@@ -3994,7 +3994,6 @@ void do_fpaintbuts(unsigned short event)
|
|||||||
clear_vpaint_selectedfaces();
|
clear_vpaint_selectedfaces();
|
||||||
else
|
else
|
||||||
clear_vpaint();
|
clear_vpaint();
|
||||||
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
|
|
||||||
break;
|
break;
|
||||||
case B_REDR_3D_IMA:
|
case B_REDR_3D_IMA:
|
||||||
allqueue(REDRAWVIEW3D, 0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
|
|||||||
@@ -352,7 +352,9 @@ void clear_vpaint_selectedfaces()
|
|||||||
tf[i].col[3] = paintcol;
|
tf[i].col[3] = paintcol;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BIF_undo_push("Clear vertex colors");
|
BIF_undo_push("Clear vertex colors");
|
||||||
|
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
|
||||||
allqueue(REDRAWVIEW3D, 0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user