diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-10 00:14:34 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-10 00:14:34 +0400 |
commit | d143eca2fcbda59e34ac91c1ddaa53b3f15de6e0 (patch) | |
tree | 856e4390877666163eca1ad39ac25ddc0080d587 | |
parent | c87b5f8dfb98cc43a7f12007e6ba2e76cfd0d6f8 (diff) |
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.
-rw-r--r-- | source/blender/blenkernel/intern/displist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/displist.c b/source/blender/blenkernel/intern/displist.c index b5194ca2f89..29b9fd5eab7 100644 --- a/source/blender/blenkernel/intern/displist.c +++ b/source/blender/blenkernel/intern/displist.c @@ -1973,8 +1973,9 @@ static void boundbox_displist(Object *ob) } 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); } } |