Refactor: Move BPY intern remaining headers to proper C++ ones.
This commit is contained in:
committed by
Bastien Montagne
parent
198a1ec7a9
commit
4dd11465bc
@@ -1610,8 +1610,8 @@ static bool rna_Operator_unregister(Main *bmain, StructRNA *type);
|
||||
|
||||
/* `bpy_operator_wrap.cc` */
|
||||
|
||||
extern "C" void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata);
|
||||
extern "C" void BPY_RNA_operator_macro_wrapper(wmOperatorType *ot, void *userdata);
|
||||
extern void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata);
|
||||
extern void BPY_RNA_operator_macro_wrapper(wmOperatorType *ot, void *userdata);
|
||||
|
||||
static StructRNA *rna_Operator_register(Main *bmain,
|
||||
ReportList *reports,
|
||||
|
||||
@@ -412,7 +412,7 @@ static PointerRNA rna_Gizmo_group_get(PointerRNA *ptr)
|
||||
# ifdef WITH_PYTHON
|
||||
|
||||
static bool rna_Gizmo_unregister(Main *bmain, StructRNA *type);
|
||||
extern "C" void BPY_RNA_gizmo_wrapper(wmGizmoType *gzgt, void *userdata);
|
||||
extern void BPY_RNA_gizmo_wrapper(wmGizmoType *gzgt, void *userdata);
|
||||
|
||||
static StructRNA *rna_Gizmo_register(Main *bmain,
|
||||
ReportList *reports,
|
||||
@@ -787,7 +787,7 @@ static void rna_gizmogroup_invoke_prepare_cb(const bContext *C,
|
||||
RNA_parameter_list_free(&list);
|
||||
}
|
||||
|
||||
extern "C" void BPY_RNA_gizmogroup_wrapper(wmGizmoGroupType *gzgt, void *userdata);
|
||||
extern void BPY_RNA_gizmogroup_wrapper(wmGizmoGroupType *gzgt, void *userdata);
|
||||
static bool rna_GizmoGroup_unregister(Main *bmain, StructRNA *type);
|
||||
|
||||
static StructRNA *rna_GizmoGroup_register(Main *bmain,
|
||||
|
||||
@@ -72,7 +72,7 @@ set(SRC
|
||||
bpy_utils_units.cc
|
||||
stubs.cc
|
||||
|
||||
bpy.h
|
||||
bpy.hh
|
||||
bpy_app.hh
|
||||
bpy_app_alembic.hh
|
||||
bpy_app_build_options.hh
|
||||
@@ -88,16 +88,16 @@ set(SRC
|
||||
bpy_app_translations.hh
|
||||
bpy_app_usd.hh
|
||||
bpy_capi_utils.h
|
||||
bpy_cli_command.h
|
||||
bpy_driver.h
|
||||
bpy_gizmo_wrap.h
|
||||
bpy_intern_string.h
|
||||
bpy_library.h
|
||||
bpy_msgbus.h
|
||||
bpy_operator.h
|
||||
bpy_operator_wrap.h
|
||||
bpy_path.h
|
||||
bpy_props.h
|
||||
bpy_cli_command.hh
|
||||
bpy_driver.hh
|
||||
bpy_gizmo_wrap.hh
|
||||
bpy_intern_string.hh
|
||||
bpy_library.hh
|
||||
bpy_msgbus.hh
|
||||
bpy_operator.hh
|
||||
bpy_operator_wrap.hh
|
||||
bpy_path.hh
|
||||
bpy_props.hh
|
||||
bpy_rna.hh
|
||||
bpy_rna_anim.hh
|
||||
bpy_rna_callback.hh
|
||||
@@ -110,9 +110,9 @@ set(SRC
|
||||
bpy_rna_text.hh
|
||||
bpy_rna_types_capi.hh
|
||||
bpy_rna_ui.hh
|
||||
bpy_traceback.h
|
||||
bpy_utils_previews.h
|
||||
bpy_utils_units.h
|
||||
bpy_traceback.hh
|
||||
bpy_utils_previews.hh
|
||||
bpy_utils_units.hh
|
||||
../BPY_extern.h
|
||||
../BPY_extern_clog.h
|
||||
../BPY_extern_python.h
|
||||
|
||||
@@ -32,19 +32,19 @@
|
||||
|
||||
#include "WM_api.hh" /* For #WM_ghost_backend */
|
||||
|
||||
#include "bpy.h"
|
||||
#include "bpy.hh"
|
||||
#include "bpy_app.hh"
|
||||
#include "bpy_cli_command.h"
|
||||
#include "bpy_driver.h"
|
||||
#include "bpy_library.h"
|
||||
#include "bpy_operator.h"
|
||||
#include "bpy_props.h"
|
||||
#include "bpy_cli_command.hh"
|
||||
#include "bpy_driver.hh"
|
||||
#include "bpy_library.hh"
|
||||
#include "bpy_operator.hh"
|
||||
#include "bpy_props.hh"
|
||||
#include "bpy_rna.hh"
|
||||
#include "bpy_rna_data.hh"
|
||||
#include "bpy_rna_gizmo.hh"
|
||||
#include "bpy_rna_types_capi.hh"
|
||||
#include "bpy_utils_previews.h"
|
||||
#include "bpy_utils_units.h"
|
||||
#include "bpy_utils_previews.hh"
|
||||
#include "bpy_utils_units.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
@@ -53,7 +53,7 @@
|
||||
/* external util modules */
|
||||
#include "../generic/idprop_py_api.h"
|
||||
#include "../generic/idprop_py_ui_api.h"
|
||||
#include "bpy_msgbus.h"
|
||||
#include "bpy_msgbus.hh"
|
||||
|
||||
#ifdef WITH_FREESTYLE
|
||||
# include "BPy_Freestyle.h"
|
||||
|
||||
@@ -8,26 +8,18 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct bContext;
|
||||
|
||||
/** Creates the `bpy` module and adds it to `sys.modules` for importing. */
|
||||
void BPy_init_modules(struct bContext *C);
|
||||
void BPy_init_modules(bContext *C);
|
||||
|
||||
extern PyObject *bpy_package_py;
|
||||
|
||||
/* `bpy_interface_atexit.cc` */
|
||||
|
||||
void BPY_atexit_register(void);
|
||||
void BPY_atexit_unregister(void);
|
||||
void BPY_atexit_register();
|
||||
void BPY_atexit_unregister();
|
||||
|
||||
extern struct CLG_LogRef *BPY_LOG_CONTEXT;
|
||||
extern struct CLG_LogRef *BPY_LOG_RNA;
|
||||
extern struct CLG_LogRef *BPY_LOG_INTERFACE;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "bpy_app_translations.hh"
|
||||
|
||||
#include "bpy_app_handlers.hh"
|
||||
#include "bpy_driver.h"
|
||||
#include "bpy_driver.hh"
|
||||
|
||||
#include "BPY_extern_python.h" /* For #BPY_python_app_help_text_fn. */
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "../generic/python_compat.h"
|
||||
#include "../generic/python_utildefines.h"
|
||||
|
||||
#include "bpy_cli_command.h" /* Own include. */
|
||||
#include "bpy_cli_command.hh" /* Own include. */
|
||||
|
||||
static const char *bpy_cli_command_capsule_name = "bpy_cli_command";
|
||||
static const char *bpy_cli_command_capsule_name_invalid = "bpy_cli_command<invalid>";
|
||||
|
||||
@@ -8,13 +8,5 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern PyMethodDef BPY_cli_command_register_def;
|
||||
extern PyMethodDef BPY_cli_command_unregister_def;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -28,9 +28,9 @@
|
||||
|
||||
#include "bpy_rna_driver.hh" /* For #pyrna_driver_get_variable_value. */
|
||||
|
||||
#include "bpy_intern_string.h"
|
||||
#include "bpy_intern_string.hh"
|
||||
|
||||
#include "bpy_driver.h"
|
||||
#include "bpy_driver.hh"
|
||||
#include "bpy_rna.hh"
|
||||
|
||||
#include "BPY_extern.h"
|
||||
|
||||
@@ -8,17 +8,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/**
|
||||
* For faster execution we keep a special dictionary for py-drivers, with
|
||||
* the needed modules and aliases.
|
||||
*/
|
||||
int bpy_pydriver_create_dict(void);
|
||||
int bpy_pydriver_create_dict();
|
||||
/**
|
||||
* For PyDrivers
|
||||
* (drivers using one-line Python expressions to express relationships between targets).
|
||||
@@ -32,7 +28,3 @@ extern bool BPY_driver_secure_bytecode_test_ex(PyObject *expr_code,
|
||||
extern bool BPY_driver_secure_bytecode_test(PyObject *expr_code,
|
||||
PyObject *py_namespace,
|
||||
const bool verbose);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -24,8 +24,8 @@
|
||||
#include "RNA_define.hh"
|
||||
#include "RNA_enum_types.hh"
|
||||
|
||||
#include "bpy_gizmo_wrap.h" /* own include */
|
||||
#include "bpy_intern_string.h"
|
||||
#include "bpy_gizmo_wrap.hh" /* own include */
|
||||
#include "bpy_intern_string.hh"
|
||||
#include "bpy_rna.hh"
|
||||
|
||||
#include "../generic/py_capi_rna.h"
|
||||
|
||||
@@ -11,14 +11,6 @@
|
||||
struct wmGizmoGroupType;
|
||||
struct wmGizmoType;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Exposed to RNA/WM API. */
|
||||
void BPY_RNA_gizmo_wrapper(struct wmGizmoType *gzt, void *userdata);
|
||||
void BPY_RNA_gizmogroup_wrapper(struct wmGizmoGroupType *gzgt, void *userdata);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
void BPY_RNA_gizmo_wrapper(wmGizmoType *gzt, void *userdata);
|
||||
void BPY_RNA_gizmogroup_wrapper(wmGizmoGroupType *gzgt, void *userdata);
|
||||
@@ -33,13 +33,13 @@
|
||||
|
||||
#include "RNA_types.hh"
|
||||
|
||||
#include "bpy.h"
|
||||
#include "bpy.hh"
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_intern_string.h"
|
||||
#include "bpy_path.h"
|
||||
#include "bpy_props.h"
|
||||
#include "bpy_intern_string.hh"
|
||||
#include "bpy_path.hh"
|
||||
#include "bpy_props.hh"
|
||||
#include "bpy_rna.hh"
|
||||
#include "bpy_traceback.h"
|
||||
#include "bpy_traceback.hh"
|
||||
|
||||
#include "bpy_app_translations.hh"
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bpy.h" /* own include */
|
||||
#include "bpy.hh" /* own include */
|
||||
#include "bpy_capi_utils.h"
|
||||
|
||||
#include "WM_api.hh"
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
#include "BPY_extern_run.h"
|
||||
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_intern_string.h"
|
||||
#include "bpy_traceback.h"
|
||||
#include "bpy_intern_string.hh"
|
||||
#include "bpy_traceback.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#include "bpy_intern_string.h"
|
||||
#include "bpy_intern_string.hh"
|
||||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
|
||||
@@ -8,12 +8,8 @@
|
||||
* \ingroup pythonintern
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void bpy_intern_string_init(void);
|
||||
void bpy_intern_string_exit(void);
|
||||
void bpy_intern_string_init();
|
||||
void bpy_intern_string_exit();
|
||||
|
||||
extern PyObject *bpy_intern_str___annotations__;
|
||||
extern PyObject *bpy_intern_str___doc__;
|
||||
@@ -32,7 +28,3 @@ extern PyObject *bpy_intern_str_register;
|
||||
extern PyObject *bpy_intern_str_self;
|
||||
extern PyObject *bpy_intern_str_depsgraph;
|
||||
extern PyObject *bpy_intern_str_unregister;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -8,15 +8,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
int BPY_library_load_type_ready();
|
||||
|
||||
int BPY_library_load_type_ready(void);
|
||||
extern PyMethodDef BPY_library_load_method_def;
|
||||
|
||||
extern PyMethodDef BPY_library_write_method_def;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_library.h"
|
||||
#include "bpy_library.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "RNA_types.hh"
|
||||
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_library.h" /* Declaration for #BPY_library_load_method_def */
|
||||
#include "bpy_library.hh" /* Declaration for #BPY_library_load_method_def */
|
||||
#include "bpy_rna.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_rna.hh"
|
||||
|
||||
#include "bpy_msgbus.h" /* own include */
|
||||
#include "bpy_msgbus.hh" /* own include */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Utils
|
||||
|
||||
@@ -8,12 +8,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
PyObject *BPY_utils_units(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
PyObject *BPY_msgbus_module();
|
||||
@@ -27,8 +27,8 @@
|
||||
|
||||
#include "BPY_extern.h"
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_operator.h"
|
||||
#include "bpy_operator_wrap.h"
|
||||
#include "bpy_operator.hh"
|
||||
#include "bpy_operator_wrap.hh"
|
||||
#include "bpy_rna.hh" /* for setting argument properties & type method `get_rna_type`. */
|
||||
|
||||
#include "RNA_access.hh"
|
||||
|
||||
@@ -8,20 +8,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern PyTypeObject pyop_base_Type;
|
||||
|
||||
#define BPy_OperatorBase_Check(v) (PyObject_TypeCheck(v, &pyop_base_Type))
|
||||
|
||||
typedef struct {
|
||||
struct BPy_OperatorBase {
|
||||
PyObject_HEAD /* Required Python macro. */
|
||||
} BPy_OperatorBase;
|
||||
};
|
||||
|
||||
PyObject *BPY_operator_module(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
PyObject *BPY_operator_module();
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "RNA_define.hh"
|
||||
#include "RNA_prototypes.hh"
|
||||
|
||||
#include "bpy_intern_string.h"
|
||||
#include "bpy_operator_wrap.h" /* own include */
|
||||
#include "bpy_intern_string.hh"
|
||||
#include "bpy_operator_wrap.hh" /* own include */
|
||||
#include "bpy_rna.hh"
|
||||
|
||||
static void operator_properties_init(wmOperatorType *ot)
|
||||
|
||||
@@ -10,10 +10,6 @@
|
||||
|
||||
struct wmOperatorType;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* These are used for operator methods, used by `bpy_operator.cc`.
|
||||
*
|
||||
@@ -27,13 +23,9 @@ PyObject *PYOP_wrap_macro_define(PyObject *self, PyObject *args);
|
||||
* 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(struct wmOperatorType *ot, void *userdata);
|
||||
void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata);
|
||||
/**
|
||||
* 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(struct wmOperatorType *ot, void *userdata);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
void BPY_RNA_operator_macro_wrapper(wmOperatorType *ot, void *userdata);
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bpy_path.h"
|
||||
#include "bpy_path.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
|
||||
|
||||
@@ -8,12 +8,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
PyObject *BPY_msgbus_module(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
PyObject *BPyInit__bpy_path();
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_props.h"
|
||||
#include "bpy_props.hh"
|
||||
#include "bpy_rna.hh"
|
||||
|
||||
#include "RNA_access.hh"
|
||||
|
||||
@@ -8,22 +8,18 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
PyObject *BPY_rna_props(void);
|
||||
PyObject *BPY_rna_props();
|
||||
/**
|
||||
* Run this on exit, clearing all Python callback users and disable the RNA callback,
|
||||
* as it would be called after Python has already finished.
|
||||
*/
|
||||
void BPY_rna_props_clear_all(void);
|
||||
void BPY_rna_props_clear_all();
|
||||
|
||||
PyObject *BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw);
|
||||
PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw);
|
||||
StructRNA *pointer_type_from_py(PyObject *value, const char *error_prefix);
|
||||
|
||||
typedef struct {
|
||||
struct BPy_PropDeferred {
|
||||
PyObject_HEAD
|
||||
/**
|
||||
* Internally a #PyCFunctionObject type.
|
||||
@@ -31,13 +27,9 @@ typedef struct {
|
||||
*/
|
||||
void *fn;
|
||||
PyObject *kw;
|
||||
} BPy_PropDeferred;
|
||||
};
|
||||
|
||||
extern PyTypeObject bpy_prop_deferred_Type;
|
||||
#define BPy_PropDeferred_CheckTypeExact(v) (Py_TYPE(v) == &bpy_prop_deferred_Type)
|
||||
|
||||
#define PYRNA_STACK_ARRAY RNA_STACK_ARRAY
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -31,8 +31,8 @@
|
||||
#include "BPY_extern_clog.h"
|
||||
|
||||
#include "bpy_capi_utils.h"
|
||||
#include "bpy_intern_string.h"
|
||||
#include "bpy_props.h"
|
||||
#include "bpy_intern_string.hh"
|
||||
#include "bpy_props.hh"
|
||||
#include "bpy_rna.hh"
|
||||
#include "bpy_rna_anim.hh"
|
||||
#include "bpy_rna_callback.hh"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bpy_library.h"
|
||||
#include "bpy_library.hh"
|
||||
#include "bpy_rna.hh"
|
||||
#include "bpy_rna_callback.hh"
|
||||
#include "bpy_rna_context.hh"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
# include "BLI_string.h" /* BLI_strcasecmp */
|
||||
#endif
|
||||
|
||||
#include "bpy_traceback.h"
|
||||
#include "bpy_traceback.hh"
|
||||
|
||||
#define MAKE_PY_IDENTIFIER_EX(varname, value) static _Py_Identifier varname{value, -1};
|
||||
#define MAKE_PY_IDENTIFIER(varname) MAKE_PY_IDENTIFIER_EX(PyId_##varname, #varname)
|
||||
|
||||
@@ -8,13 +8,5 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
bool python_script_error_jump(
|
||||
const char *filepath, int *r_lineno, int *r_offset, int *r_lineno_end, int *r_offset_end);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "RNA_prototypes.hh"
|
||||
|
||||
#include "bpy_rna.hh"
|
||||
#include "bpy_utils_previews.h"
|
||||
#include "bpy_utils_previews.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
|
||||
|
||||
@@ -8,12 +8,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
PyObject *BPyInit__bpy_path(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
PyObject *BPY_utils_previews_module();
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bpy_utils_units.h"
|
||||
#include "bpy_utils_units.hh"
|
||||
|
||||
#include "../generic/py_capi_utils.h"
|
||||
#include "../generic/python_compat.h"
|
||||
|
||||
@@ -8,12 +8,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
PyObject *BPY_utils_previews_module(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
PyObject *BPY_utils_units();
|
||||
Reference in New Issue
Block a user