Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.c
| Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | case SPACE_IMAGE: { | ||||
| SpaceImage *sima = (SpaceImage *)DST.draw_ctx.space_data; | SpaceImage *sima = (SpaceImage *)DST.draw_ctx.space_data; | ||||
| return (sima->flag & SI_SHOW_GPENCIL) != 0; | return (sima->flag & SI_SHOW_GPENCIL) != 0; | ||||
| } | } | ||||
| case SPACE_NODE: | case SPACE_NODE: | ||||
| /* Don't draw the annotation for the node editor. Annotations are handled by space_image as | /* Don't draw the annotation for the node editor. Annotations are handled by space_image as | ||||
| * the draw manager is only used to draw the background. */ | * the draw manager is only used to draw the background. */ | ||||
| return false; | return false; | ||||
| default: | default: | ||||
| BLI_assert(""); | BLI_assert(0); | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Threading | /** \name Threading | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 2,089 Lines • ▼ Show 20 Lines | if (g_select_buffer.texture_depth == NULL) { | ||||
| GPU_framebuffer_check_valid(g_select_buffer.framebuffer_depth_only, NULL); | GPU_framebuffer_check_valid(g_select_buffer.framebuffer_depth_only, NULL); | ||||
| } | } | ||||
| } | } | ||||
| /* Must run after all instance datas have been added. */ | /* Must run after all instance datas have been added. */ | ||||
| void DRW_render_instance_buffer_finish(void) | void DRW_render_instance_buffer_finish(void) | ||||
| { | { | ||||
| BLI_assert(!DST.buffer_finish_called && "DRW_render_instance_buffer_finish called twice!"); | BLI_assert_msg(!DST.buffer_finish_called, "DRW_render_instance_buffer_finish called twice!"); | ||||
| DST.buffer_finish_called = true; | DST.buffer_finish_called = true; | ||||
| DRW_instance_buffer_finish(DST.idatalist); | DRW_instance_buffer_finish(DST.idatalist); | ||||
| drw_resource_buffer_finish(DST.vmempool); | drw_resource_buffer_finish(DST.vmempool); | ||||
| } | } | ||||
| /* WARNING: Changing frame might free the ViewLayerEngineData */ | /* WARNING: Changing frame might free the ViewLayerEngineData */ | ||||
| void DRW_render_set_time(RenderEngine *engine, Depsgraph *depsgraph, int frame, float subframe) | void DRW_render_set_time(RenderEngine *engine, Depsgraph *depsgraph, int frame, float subframe) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 965 Lines • Show Last 20 Lines | |||||