Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image_proj.c
| Context not available. | |||||
| } /* otherwise no mask normal is needed, were within the limit */ | } /* otherwise no mask normal is needed, were within the limit */ | ||||
| } | } | ||||
| /* This only works when the opacity dosnt change while painting, stylus pressure messes with this | /* This only works when the opacity doesn't change while painting, stylus pressure messes with this | ||||
| * so don't use it. */ | * so don't use it. */ | ||||
| // if (ps->is_airbrush == 0) mask *= BKE_brush_alpha_get(ps->brush); | // if (ps->is_airbrush == 0) mask *= BKE_brush_alpha_get(ps->brush); | ||||
| Context not available. | |||||
| } | } | ||||
| #if 0 /* TODO - investigate why this dosnt work sometimes! it should! */ | #if 0 /* TODO - investigate why this doesn't work sometimes! it should! */ | ||||
| /* no intersection for this entire row, after some intersection above means we can quit now */ | /* no intersection for this entire row, after some intersection above means we can quit now */ | ||||
| if (has_x_isect == 0 && has_isect) { | if (has_x_isect == 0 && has_isect) { | ||||
| break; | break; | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| #if 0 /* TODO - investigate why this dosnt work sometimes! it should! */ | #if 0 /* TODO - investigate why this doesn't work sometimes! it should! */ | ||||
| /* no intersection for this entire row, after some intersection above means we can quit now */ | /* no intersection for this entire row, after some intersection above means we can quit now */ | ||||
| if (has_x_isect == 0 && has_isect) { | if (has_x_isect == 0 && has_isect) { | ||||
| break; | break; | ||||
| Context not available. | |||||
| image_index = BLI_linklist_index(image_LinkList.list, tpage); | image_index = BLI_linklist_index(image_LinkList.list, tpage); | ||||
| if (image_index == -1 && BKE_image_has_ibuf(tpage, NULL)) { /* MemArena dosnt have an append func */ | if (image_index == -1 && BKE_image_has_ibuf(tpage, NULL)) { /* MemArena doesn't have an append func */ | ||||
| BLI_linklist_append(&image_LinkList, tpage); | BLI_linklist_append(&image_LinkList, tpage); | ||||
| image_index = ps->image_tot; | image_index = ps->image_tot; | ||||
| ps->image_tot++; | ps->image_tot++; | ||||
| Context not available. | |||||