forked from bartvdbraak/blender
Fix deffects reported by CoverityScan (nothing dramatic, but at least one was a (minor) bug).
This commit is contained in:
parent
2020a15153
commit
a5be03b270
@ -1391,8 +1391,8 @@ static void calc_bevfac_mapping(Curve *cu, BevList *bl, int *r_start, float *r_f
|
||||
if ((cu->bevfac1_mapping != CU_BEVFAC_MAP_RESOLU) ||
|
||||
(cu->bevfac2_mapping != CU_BEVFAC_MAP_RESOLU))
|
||||
{
|
||||
bevp_array = MEM_mallocN(sizeof(bevp_array) * (bl->nr - 1), "bevp_dists");
|
||||
segments = MEM_callocN(sizeof(segments) * segcount, "bevp_segmentlengths");
|
||||
bevp_array = MEM_mallocN(sizeof(*bevp_array) * (bl->nr - 1), "bevp_dists");
|
||||
segments = MEM_callocN(sizeof(*segments) * segcount, "bevp_segmentlengths");
|
||||
bevp = (BevPoint *)(bl + 1);
|
||||
bevp++;
|
||||
for (i = 1, j = 0; i < bl->nr; bevp++, i++) {
|
||||
|
@ -515,6 +515,7 @@ SeqRenderData BKE_sequencer_new_render_data(EvaluationContext *eval_ctx,
|
||||
rval.motion_blur_shutter = 0;
|
||||
rval.eval_ctx = eval_ctx;
|
||||
rval.skip_cache = false;
|
||||
rval.is_proxy_render = false;
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
@ -6708,7 +6708,7 @@ static void MaskPointToTransData(Scene *scene, MaskSplinePoint *point,
|
||||
if (i == 0) {
|
||||
tdm->orig_handle_type = bezt->h1;
|
||||
}
|
||||
else if (i == 3) {
|
||||
else if (i == 2) {
|
||||
tdm->orig_handle_type = bezt->h2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user