Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image_proj.c
| Show First 20 Lines • Show All 5,565 Lines • ▼ Show 20 Lines | static bool project_paint_op(void *state, const float lastpos[2], const float pos[2]) | ||||
| struct ImagePool *image_pool; | struct ImagePool *image_pool; | ||||
| if (!project_bucket_iter_init(ps, pos)) { | if (!project_bucket_iter_init(ps, pos)) { | ||||
| return touch_any; | return touch_any; | ||||
| } | } | ||||
| if (ps->thread_tot > 1) { | if (ps->thread_tot > 1) { | ||||
| task_pool = BLI_task_pool_create_suspended(NULL, TASK_PRIORITY_HIGH); | task_pool = BLI_task_pool_create_suspended(NULL, TASK_PRIORITY_HIGH, TASK_ISOLATION_ON); | ||||
| } | } | ||||
| image_pool = BKE_image_pool_new(); | image_pool = BKE_image_pool_new(); | ||||
| if (!ELEM(ps->source, PROJ_SRC_VIEW, PROJ_SRC_VIEW_FILL)) { | if (!ELEM(ps->source, PROJ_SRC_VIEW, PROJ_SRC_VIEW_FILL)) { | ||||
| /* This means we are reprojecting an image, make sure the image has the needed data available. | /* This means we are reprojecting an image, make sure the image has the needed data available. | ||||
| */ | */ | ||||
| bool float_dest = false; | bool float_dest = false; | ||||
| ▲ Show 20 Lines • Show All 1,213 Lines • Show Last 20 Lines | |||||