Fix error in previous commit...

This commit is contained in:
Julian Eisel 2020-10-03 19:01:12 +02:00
parent 27bcbf19ed
commit 05bf109b52
1 changed files with 1 additions and 1 deletions

View File

@ -939,7 +939,7 @@ static uiBut *ui_item_with_label(uiLayout *layout,
#endif
const bool is_keymapitem_ptr = RNA_struct_is_a(ptr->type, &RNA_KeyMapItem);
if ((flag & flag & UI_ITEM_R_FULL_EVENT) && is_keymapitem_ptr) {
if ((flag & flag & UI_ITEM_R_FULL_EVENT) && !is_keymapitem_ptr) {
RNA_warning("Data is not a keymap item struct: %s. Ignoring 'full_event' option.",
RNA_struct_identifier(ptr->type));
}