[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18531] branches/blender2.5/blender/source /blender/editors/sculpt/sculpt.c: Added some temporary error prints for get_depth in sculpt
Nicholas Bishop
nicholasbishop at gmail.com
Fri Jan 16 01:44:46 CET 2009
Revision: 18531
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18531
Author: nicholasbishop
Date: 2009-01-16 01:44:46 +0100 (Fri, 16 Jan 2009)
Log Message:
-----------
Added some temporary error prints for get_depth in sculpt
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c
Modified: branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c 2009-01-15 22:16:29 UTC (rev 18530)
+++ branches/blender2.5/blender/source/blender/editors/sculpt/sculpt.c 2009-01-16 00:44:46 UTC (rev 18531)
@@ -248,9 +248,15 @@
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;
}
More information about the Bf-blender-cvs
mailing list