Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/external_engine.c
| Show First 20 Lines • Show All 861 Lines • ▼ Show 20 Lines | engine->update_render_passes_cb( | ||||
| engine->update_render_passes_data, scene, view_layer, name, channels, chanid, type); | engine->update_render_passes_data, scene, view_layer, name, channels, chanid, type); | ||||
| } | } | ||||
| void RE_engine_free_blender_memory(RenderEngine *engine) | void RE_engine_free_blender_memory(RenderEngine *engine) | ||||
| { | { | ||||
| /* Weak way to save memory, but not crash grease pencil. | /* Weak way to save memory, but not crash grease pencil. | ||||
| * | * | ||||
| * TODO(sergey): Find better solution for this. | * TODO(sergey): Find better solution for this. | ||||
| * TODO(sergey): Try to find solution which does not involve looping over | |||||
| * all the objects. | |||||
| */ | */ | ||||
| if (DRW_render_check_grease_pencil(engine->depsgraph)) { | if (DRW_render_check_grease_pencil(engine->depsgraph)) { | ||||
| return; | return; | ||||
| } | } | ||||
| DEG_graph_free(engine->depsgraph); | DEG_graph_free(engine->depsgraph); | ||||
| engine->depsgraph = NULL; | engine->depsgraph = NULL; | ||||
| } | } | ||||