Cleanup: compiler warnings.

This commit is contained in:
Brecht Van Lommel
2018-08-28 11:47:16 +02:00
parent 12622ce2f7
commit 0023060893
2 changed files with 7 additions and 3 deletions

View File

@@ -753,7 +753,7 @@ static short gp_stroke_addpoint(
if (gp_stroke_added_check(p)) {
bGPDstroke *gps = p->gpf->strokes.last;
bGPDspoint *pts;
MDeformVert *dvert;
MDeformVert *dvert = NULL;
/* first time point is adding to temporary buffer -- need to allocate new point in stroke */
if (gpd->runtime.sbuffer_size == 0) {
@@ -792,7 +792,7 @@ static short gp_stroke_addpoint(
pts->uv_fac = pt->uv_fac;
pts->uv_rot = pt->uv_rot;
if (gps->dvert != NULL) {
if (dvert != NULL) {
dvert->totweight = 0;
dvert->dw = NULL;
}

View File

@@ -1754,9 +1754,13 @@ static bool mouse_mesh_loop(bContext *C, const int mval[2], bool extend, bool de
ED_view3d_viewcontext_init_object(&vc, basact->object);
em = vc.em;
}
else {
em = NULL;
}
em_original->selectmode = selectmode;
if (eed == NULL) {
if (em == NULL || eed == NULL) {
return false;
}