29 return (hook->rna_ext.srna) ? hook->rna_ext.srna : &RNA_USDHook;
36 if (hook ==
nullptr) {
55 const char *identifier,
60 const char *error_prefix =
"Registering USD hook class:";
67 if (validate(&dummy_hook_ptr, data,
nullptr) != 0) {
71 if (strlen(identifier) >=
sizeof(dummy_hook.idname)) {
74 "%s '%s' is too long, maximum length is %d",
77 (
int)
sizeof(dummy_hook.idname));
85 "%s '%s', bl_idname '%s' has been registered before, unregistering previous",
91 if (!rna_USDHook_unregister(bmain, srna)) {
94 "%s '%s', bl_idname '%s' %s",
98 "could not be unregistered");
104 auto hook = std::make_unique<USDHook>();
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BLI_kdtree_nd_ free(KDTree *tree)
Object is a sort of wrapper for general info.
#define RNA_DYN_DESCR_MAX
int(*)(PointerRNA *ptr, void *data, bool *have_function) StructValidateFunc
void(*)(void *data) StructFreeFunc
int(*)(bContext *C, PointerRNA *ptr, FunctionRNA *func, ParameterList *list) StructCallbackFunc
void USD_unregister_hook(USDHook *hook)
void USD_register_hook(std::unique_ptr< USDHook > hook)
USDHook * USD_find_hook_name(const char idname[])
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
void * RNA_struct_blender_type_get(StructRNA *srna)
PointerRNA RNA_pointer_create(ID *id, StructRNA *type, void *data)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
void RNA_define_verify_sdna(bool verify)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_usd(BlenderRNA *brna)
static void rna_def_usd_hook(BlenderRNA *brna)
void WM_main_add_notifier(uint type, void *reference)