[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36579] trunk/blender/source/blender/ blenkernel/intern/displist.c: Fix #27346: When The FONT object is blank, the dimensions are calculated wong.
Sergey Sharybin
g.ulairi at gmail.com
Mon May 9 22:14:34 CEST 2011
Revision: 36579
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36579
Author: nazgul
Date: 2011-05-09 20:14:34 +0000 (Mon, 09 May 2011)
Log Message:
-----------
Fix #27346: When The FONT object is blank, the dimensions are calculated wong.
This commit fixes boundbox for empty curve-typed objects. Because of strange
reason (-1,-1,-1) and (1,1,1) was used as boundbox. Now it uses zero-sized
boundbox (as it's done for meshes).
This commit makes nothig with that single space character text from the report.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/displist.c
Modified: trunk/blender/source/blender/blenkernel/intern/displist.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/displist.c 2011-05-09 20:13:48 UTC (rev 36578)
+++ trunk/blender/source/blender/blenkernel/intern/displist.c 2011-05-09 20:14:34 UTC (rev 36579)
@@ -1973,8 +1973,9 @@
}
if(!doit) {
- min[0] = min[1] = min[2] = -1.0f;
- max[0] = max[1] = max[2] = 1.0f;
+ /* there's no geometry in displist, use zero-sized boundbox */
+ zero_v3(min);
+ zero_v3(max);
}
}
More information about the Bf-blender-cvs
mailing list