Fix compilation error caused by wrong array initialization
We usually don't silence migh-be-uninitialized warning (which is the only thing which could explain setting matrix to all zeroes) so we can catch such errors when using tools like Valgrind. I don't get warning here and the initializer was wrong, so removing it. If it-s _REALLY_ needed please do a proper initialization.
This commit is contained in:
@@ -1894,7 +1894,7 @@ static int gp_strokes_reproject_poll(bContext *C)
|
||||
return (gp_stroke_edit_poll(C) && ED_operator_view3d_active(C));
|
||||
}
|
||||
|
||||
static int gp_strokes_reproject_exec(bContext *C, wmOperator *op)
|
||||
static int gp_strokes_reproject_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
{
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
GP_SpaceConversion gsc = {NULL};
|
||||
@@ -1908,7 +1908,7 @@ static int gp_strokes_reproject_exec(bContext *C, wmOperator *op)
|
||||
if (gps->flag & GP_STROKE_SELECT) {
|
||||
bGPDspoint *pt;
|
||||
int i;
|
||||
float inverse_diff_mat[4][4] = {0.0f};
|
||||
float inverse_diff_mat[4][4];
|
||||
|
||||
/* Compute inverse matrix for unapplying parenting once instead of doing per-point */
|
||||
/* TODO: add this bit to the iteration macro? */
|
||||
|
||||
Reference in New Issue
Block a user