Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-03-30 18:03:11 +0300
committerHans Goudey <h.goudey@me.com>2021-03-30 18:03:11 +0300
commit6ea09db7a1e62be0fad18cf2aed9976bc1f7336f (patch)
tree1b157f5052f9819cbb34962f1be7989294f3c4ad /source/blender/editors/object/object_modifier.c
parente5f0d176d4cfa020bfb4de78086007dcfd02e8f9 (diff)
Cleanup: Improve comment
Diffstat (limited to 'source/blender/editors/object/object_modifier.c')
-rw-r--r--source/blender/editors/object/object_modifier.c6
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;
}