Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mask_rasterize.c
| Context not available. | |||||
| * - Campbell | * - Campbell | ||||
| */ | */ | ||||
| #include "CLG_log.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "DNA_vec_types.h" | #include "DNA_vec_types.h" | ||||
| Context not available. | |||||
| # define FACE_ASSERT(face, vert_max) | # define FACE_ASSERT(face, vert_max) | ||||
| #endif | #endif | ||||
| static CLG_LogRef LOG = { "bke.mask_rasterize" }; | |||||
| static void rotate_point_v2(float r_p[2], const float p[2], const float cent[2], const float angle, const float asp[2]) | static void rotate_point_v2(float r_p[2], const float p[2], const float cent[2], const float angle, const float asp[2]) | ||||
| { | { | ||||
| const float s = sinf(angle); | const float s = sinf(angle); | ||||
| Context not available. | |||||
| value = fabsf(value - value_layer); | value = fabsf(value - value_layer); | ||||
| break; | break; | ||||
| default: /* same as add */ | default: /* same as add */ | ||||
| CLOG_FATAL(&LOG, "unhandled blend type: %d", layer->blend); | |||||
| BLI_assert(0); | BLI_assert(0); | ||||
| value += value_layer; | value += value_layer; | ||||
| break; | break; | ||||
| Context not available. | |||||