Added some temporary error prints for get_depth in sculpt

This commit is contained in:
Nicholas Bishop
2009-01-16 00:44:46 +00:00
parent 09683a7c7d
commit 54fa55394b

View File

@@ -248,9 +248,15 @@ static float get_depth(bContext *C, short x, short y)
if(vd && vd->depths && x > 0 && y > 0 && x < vd->w && y < vd->h)
return vd->depths[y * vd->w + x];
if(!vd)
fprintf(stderr, "Error: Bad view3d!\n");
else if(!vd->depths)
fprintf(stderr, "Error: Bad depths copy!\n");
else
fprintf(stderr, "Error: Out of range: (%d,%d)\n", x, y);
}
fprintf(stderr, "Error: Bad depth store!\n");
return 1;
}