[Bf-blender-cvs] [925380050d0] blender2.8: Keymap: fix error in recent enum-menu support
Campbell Barton
noreply at git.blender.org
Sun Dec 2 05:10:04 CET 2018
Commit: 925380050d026e8948cb5d72c5b68a796744a5b4
Author: Campbell Barton
Date: Sun Dec 2 15:09:15 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB925380050d026e8948cb5d72c5b68a796744a5b4
Keymap: fix error in recent enum-menu support
===================================================================
M source/blender/editors/interface/interface.c
===================================================================
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 82238744205..6efd6acf59d 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -1198,7 +1198,7 @@ static bool ui_but_event_property_operator_string(
}
/* we have a datapath! */
- if (data_path || prop_enum_value_id) {
+ if (data_path || (prop_enum_value_ok && prop_enum_value_id)) {
/* create a property to host the "datapath" property we're sending to the operators */
IDProperty *prop_path;
More information about the Bf-blender-cvs
mailing list