Cleanup: Use LISTBASE_FOREACH macro
This commit is contained in:
parent
b08301c865
commit
9437abdbce
|
@ -524,7 +524,7 @@ static bool v3d_cursor_is_snap_invert(SnapCursorDataIntern *data_intern, const w
|
|||
const int snap_on = data_intern->snap_on;
|
||||
|
||||
wmKeyMap *keymap = WM_keymap_active(wm, data_intern->keymap);
|
||||
for (wmKeyMapItem *kmi = keymap->items.first; kmi; kmi = kmi->next) {
|
||||
LISTBASE_FOREACH (const wmKeyMapItem *, kmi, &keymap->items) {
|
||||
if (kmi->flag & KMI_INACTIVE) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -1859,9 +1859,7 @@ bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||
* lead to keymap conflicts for other modes (see T31584)
|
||||
*/
|
||||
if (ELEM(mode, TFM_TRANSLATION, TFM_ROTATION, TFM_RESIZE)) {
|
||||
wmKeyMapItem *kmi;
|
||||
|
||||
for (kmi = t->keymap->items.first; kmi; kmi = kmi->next) {
|
||||
LISTBASE_FOREACH (const wmKeyMapItem *, kmi, &t->keymap->items) {
|
||||
if (kmi->flag & KMI_INACTIVE) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue