Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_render.c
| Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | static void rna_RenderEngine_unregister(Main *bmain, StructRNA *type) | ||||
| if (!et) | if (!et) | ||||
| return; | return; | ||||
| RNA_struct_free_extension(type, &et->ext); | RNA_struct_free_extension(type, &et->ext); | ||||
| RNA_struct_free(&BLENDER_RNA, type); | RNA_struct_free(&BLENDER_RNA, type); | ||||
| BLI_freelinkN(&R_engines, et); | BLI_freelinkN(&R_engines, et); | ||||
| /* Stop all renders in case we were using this one. */ | /* Stop all renders in case we were using this one. */ | ||||
| ED_render_engine_changed(bmain); | ED_render_engine_changed(NULL, bmain); | ||||
| } | } | ||||
| static StructRNA *rna_RenderEngine_register( | static StructRNA *rna_RenderEngine_register( | ||||
| Main *bmain, ReportList *reports, void *data, const char *identifier, | Main *bmain, ReportList *reports, void *data, const char *identifier, | ||||
| StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free) | StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free) | ||||
| { | { | ||||
| RenderEngineType *et, dummyet = {NULL}; | RenderEngineType *et, dummyet = {NULL}; | ||||
| RenderEngine dummyengine = {NULL}; | RenderEngine dummyengine = {NULL}; | ||||
| ▲ Show 20 Lines • Show All 734 Lines • Show Last 20 Lines | |||||