Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-01-16 03:44:46 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-01-16 03:44:46 +0300
commit54fa55394b262536534256c29d1af6e84fda60ac (patch)
treea78a7a061ca8884f5fa81cb561cd44eb07d2545e /source/blender/editors
parent09683a7c7dba7ec1e3b2a6b0e61f8357e62bd77b (diff)
Added some temporary error prints for get_depth in sculpt
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt/sculpt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt/sculpt.c b/source/blender/editors/sculpt/sculpt.c
index 3a3807ab3cd..bb95c4e006c 100644
--- a/source/blender/editors/sculpt/sculpt.c
+++ b/source/blender/editors/sculpt/sculpt.c
@@ -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;
}