From 6ea09db7a1e62be0fad18cf2aed9976bc1f7336f Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 30 Mar 2021 10:03:11 -0500 Subject: Cleanup: Improve comment --- source/blender/editors/object/object_modifier.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/object/object_modifier.c') diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index b13c2311dba..b28b7478721 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -1131,13 +1131,15 @@ bool edit_modifier_invoke_properties_with_hover_no_active(bContext *C, } PointerRNA *panel_ptr = UI_region_panel_custom_data_under_cursor(C, event); - if ((panel_ptr == NULL || RNA_pointer_is_null(panel_ptr))) { + if (panel_ptr == NULL || RNA_pointer_is_null(panel_ptr)) { *r_retval = OPERATOR_CANCELLED; return false; } if (!RNA_struct_is_a(panel_ptr->type, &RNA_Modifier)) { - /* Work around multiple operators using the same shortcut. */ + /* Work around multiple operators using the same shortcut. The operators for the other + * stacks in the property editor use the same key, and will not run after these return + * OPERATOR_CANCELLED. */ *r_retval = (OPERATOR_PASS_THROUGH | OPERATOR_CANCELLED); return false; } -- cgit v1.2.3