Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image_proj.c
| Context not available. | |||||
| } | } | ||||
| else if (angle_cos < ps->normal_angle_inner__cos) { | else if (angle_cos < ps->normal_angle_inner__cos) { | ||||
| mask *= (ps->normal_angle - acosf(angle_cos)) / ps->normal_angle_range; | mask *= (ps->normal_angle - acosf(angle_cos)) / ps->normal_angle_range; | ||||
| } /* otherwise no mask normal is needed, were within the limit */ | } /* otherwise no mask normal is needed, we're within the limit */ | ||||
| } | } | ||||
| /* This only works when the opacity doesn't change while painting, stylus pressure messes with | /* This only works when the opacity doesn't change while painting, stylus pressure messes with | ||||
| Context not available. | |||||
| //#endif | //#endif | ||||
| } | } | ||||
| #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, | /* no intersection for this entire row, | ||||
| * after some intersection above means we can quit now */ | * after some intersection above means we can quit now */ | ||||
| if (has_x_isect == 0 && has_isect) { | if (has_x_isect == 0 && has_isect) { | ||||
| Context not available. | |||||
| } | } | ||||
| else if (has_x_isect) { | else if (has_x_isect) { | ||||
| /* assuming the face is not a bow-tie - we know | /* assuming the face is not a bow-tie - we know | ||||
| * we cant intersect again on the X */ | * we can't intersect again on the X */ | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| # 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, | /* no intersection for this entire row, | ||||
| * after some intersection above means we can quit now */ | * after some intersection above means we can quit now */ | ||||
| if (has_x_isect == 0 && has_isect) { | if (has_x_isect == 0 && has_isect) { | ||||
| 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)) { | if (image_index == -1 && BKE_image_has_ibuf(tpage, NULL)) { | ||||
| /* MemArena dosnt have an append func */ | /* 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. | |||||