Cleanup: update comments, remove ifdef'd code

This commit is contained in:
Campbell Barton
2021-03-15 11:27:37 +11:00
parent c23da7a5c9
commit 042f06ef3c
5 changed files with 24 additions and 38 deletions

View File

@@ -17,7 +17,7 @@
/** \file
* \ingroup pythonintern
*
* This file is so python can define operators that C can call into.
* This file exposes functionality for defining to define operators that C can call into.
* The generic callback functions for python operators are defines in
* 'rna_wm.c', some calling into functions here to do python specific
* functionality.
@@ -115,6 +115,10 @@ static void operator_properties_init(wmOperatorType *ot)
/* end 'ot->prop' assignment */
}
/**
* Generic function used by all Python defined operators
* it's passed as an argument to #WM_operatortype_append_ptr in for operator registration.
*/
void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata)
{
/* take care not to overwrite anything set in
@@ -131,6 +135,10 @@ void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata)
operator_properties_init(ot);
}
/**
* Generic function used by all Python defined macro-operators
* it's passed as an argument to #WM_operatortype_append_ptr in for operator registration.
*/
void BPY_RNA_operator_macro_wrapper(wmOperatorType *ot, void *userdata)
{
wmOperatorType *data = (wmOperatorType *)userdata;