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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs