[Bf-blender-cvs] [05bf109b52a] master: Fix error in previous commit...

Julian Eisel noreply at git.blender.org
Sat Oct 3 19:01:27 CEST 2020


Commit: 05bf109b52a6e22f69c213b29ba526e7c103e897
Author: Julian Eisel
Date:   Sat Oct 3 19:01:12 2020 +0200
Branches: master
https://developer.blender.org/rB05bf109b52a6e22f69c213b29ba526e7c103e897

Fix error in previous commit...

===================================================================

M	source/blender/editors/interface/interface_layout.c

===================================================================

diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 605930c6111..d0621051023 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -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));
   }



More information about the Bf-blender-cvs mailing list