123 const int frame = scene->
r.
cfra;
125 bool changed =
false;
133 if (mask_layer->splines_shapes.first) {
142 if (mask_layer_shape_reset->
tot_vert == mask_layer_shape->tot_vert) {
151 for (
int i = 0;
i < spline->tot_point;
i++) {
156 shape_ele_dst->
value[6] = shape_ele_src->
value[6];
213 const int frame = scene->
r.
cfra;
215 bool changed =
false;
230 if (mask_layer->splines_shapes.first) {
234 for (mask_layer_shape =
static_cast<MaskLayerShape *
>(mask_layer->splines_shapes.first);
236 mask_layer_shape = mask_layer_shape_next)
241 mask_layer_shape_next = mask_layer_shape->
next;
245 if (mask_layer_shape_lastsel ==
nullptr) {
246 mask_layer_shape_lastsel = mask_layer_shape;
248 if ((mask_layer_shape->
next ==
nullptr) ||
251 mask_layer_shape_a = mask_layer_shape_lastsel;
252 mask_layer_shape_b = mask_layer_shape;
253 mask_layer_shape_lastsel =
nullptr;
256 mask_layer_shape_next = mask_layer_shape->
next;
261 if (mask_layer_shape_a && mask_layer_shape_b) {
262 ListBase shapes_tmp = {
nullptr,
nullptr};
269 for (mask_layer_shape_tmp = mask_layer_shape_a;
270 mask_layer_shape_tmp && (mask_layer_shape_tmp != mask_layer_shape_tmp_last);
271 mask_layer_shape_tmp = mask_layer_shape_tmp_next)
273 mask_layer_shape_tmp_next = mask_layer_shape_tmp->
next;
274 BLI_remlink(&mask_layer->splines_shapes, mask_layer_shape_tmp);
280 mask_layer_shape_tmp;
281 mask_layer_shape_tmp = mask_layer_shape_tmp->
next)
285 mask_layer, mask_layer_shape_tmp->
frame);
292 mask_layer_shape_tmp;
293 mask_layer_shape_tmp = mask_layer_shape_tmp_next)
300 mask_layer_shape_tmp_next = mask_layer_shape_tmp->
next;
304 mask_layer, mask_layer_shape_tmp->
frame);
310 for (
int i = 0;
i < spline->tot_point;
i++) {
314 std::swap(*shape_ele_src, *shape_ele_dst);
318 memcpy(shape_ele_dst->
value, shape_ele_src->
value,
sizeof(
float[6]));
321 shape_ele_dst->
value[6] = shape_ele_src->
value[6];
Mask * CTX_data_edit_mask(const bContext *C)
Scene * CTX_data_scene(const bContext *C)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)