Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.c
| Context not available. | |||||
| #include "engines/basic/basic_engine.h" | #include "engines/basic/basic_engine.h" | ||||
| #include "engines/workbench/workbench_engine.h" | #include "engines/workbench/workbench_engine.h" | ||||
| #include "engines/external/external_engine.h" | #include "engines/external/external_engine.h" | ||||
| #include "engines/gpencil/gpencil_engine.h" | |||||
| #include "GPU_context.h" | #include "GPU_context.h" | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| /* TODO: GPXX Workaround for grease pencil selection while draw manager support a callback from | |||||
| * scene finish */ | |||||
| void *data = GPU_viewport_engine_data_get(DST.viewport, &draw_engine_gpencil_type); | |||||
antoniov: Not sure here if I must use `ViewportEngineData *data = drw_viewport_engine_data_ensure(engine)… | |||||
mano-wiiUnsubmitted Not Done Inline ActionsI don't think so. This function creates a data. In doubt just check if data is NULL. mano-wii: I don't think so. This function creates a `data`. In doubt just check if `data` is `NULL`.
But… | |||||
antoniovAuthorUnsubmitted Done Inline ActionsYes, I have added a check of NULL antoniov: Yes, I have added a check of NULL | |||||
| DRW_gpencil_free_runtime_data(data); | |||||
| DRW_state_lock(0); | DRW_state_lock(0); | ||||
| DRW_draw_callbacks_post_scene(); | DRW_draw_callbacks_post_scene(); | ||||
| Context not available. | |||||
Not sure here if I must use ViewportEngineData *data = drw_viewport_engine_data_ensure(engine);