diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-30 18:03:11 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-30 18:03:11 +0300 |
commit | 6ea09db7a1e62be0fad18cf2aed9976bc1f7336f (patch) | |
tree | 1b157f5052f9819cbb34962f1be7989294f3c4ad /source/blender/editors | |
parent | e5f0d176d4cfa020bfb4de78086007dcfd02e8f9 (diff) |
Cleanup: Improve comment
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/object/object_modifier.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |