[Bf-blender-cvs] [6cec782970f] master: Cleanup: Collection check return type in button_context
Sebastian Parborg
noreply at git.blender.org
Mon Mar 22 16:59:12 CET 2021
Commit: 6cec782970f9924aaa1a49cfff8a2e43efaf559e
Author: Sebastian Parborg
Date: Mon Mar 22 16:58:09 2021 +0100
Branches: master
https://developer.blender.org/rB6cec782970f9924aaa1a49cfff8a2e43efaf559e
Cleanup: Collection check return type in button_context
===================================================================
M source/blender/editors/space_buttons/buttons_context.c
===================================================================
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index 13762b348c2..41d8ff9bc9e 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -887,7 +887,7 @@ int /*eContextResult*/ buttons_context(const bContext *C,
}
if (CTX_data_equals(member, "collection")) {
set_pointer_type(path, result, &RNA_Collection);
- return 1;
+ return CTX_RESULT_OK;
}
if (CTX_data_equals(member, "object")) {
set_pointer_type(path, result, &RNA_Object);
More information about the Bf-blender-cvs
mailing list