Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.c
| Show First 20 Lines • Show All 1,994 Lines • ▼ Show 20 Lines | else { | ||||
| DRW_opengl_context_disable(); | DRW_opengl_context_disable(); | ||||
| } | } | ||||
| } | } | ||||
| void DRW_render_object_iter( | void DRW_render_object_iter( | ||||
| void *vedata, | void *vedata, | ||||
| RenderEngine *engine, | RenderEngine *engine, | ||||
| struct Depsgraph *depsgraph, | struct Depsgraph *depsgraph, | ||||
| void (*callback)(void *vedata, Object *ob, RenderEngine *engine, struct Depsgraph *depsgraph)) | void (*callback)(void *vedata, Object *ob, RenderEngine *engine, struct Depsgraph *depsgraph), | ||||
| const short filter_type) | |||||
| { | { | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| DRW_hair_init(); | DRW_hair_init(); | ||||
| const int object_type_exclude_viewport = draw_ctx->v3d ? | const int object_type_exclude_viewport = draw_ctx->v3d ? | ||||
| draw_ctx->v3d->object_type_exclude_viewport : | draw_ctx->v3d->object_type_exclude_viewport : | ||||
| 0; | 0; | ||||
| DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN (depsgraph, ob) { | DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN (depsgraph, ob) { | ||||
| if ((filter_type > -1) && (ob->type != filter_type)) { | |||||
| continue; | |||||
| } | |||||
| if ((object_type_exclude_viewport & (1 << ob->type)) == 0) { | if ((object_type_exclude_viewport & (1 << ob->type)) == 0) { | ||||
| DST.dupli_parent = data_.dupli_parent; | DST.dupli_parent = data_.dupli_parent; | ||||
| DST.dupli_source = data_.dupli_object_current; | DST.dupli_source = data_.dupli_object_current; | ||||
| DST.ob_handle = 0; | DST.ob_handle = 0; | ||||
| drw_duplidata_load(DST.dupli_source); | drw_duplidata_load(DST.dupli_source); | ||||
| if (!DST.dupli_source) { | if (!DST.dupli_source) { | ||||
| drw_batch_cache_validate(ob); | drw_batch_cache_validate(ob); | ||||
| ▲ Show 20 Lines • Show All 962 Lines • Show Last 20 Lines | |||||