[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46985] trunk/blender/source/blender/ blenkernel/intern/object.c: Fix bug [#31512] Focus Zoom on text object with modifers fails
Nicholas Bishop
nicholasbishop at gmail.com
Thu May 24 22:20:13 CEST 2012
Revision: 46985
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46985
Author: nicholasbishop
Date: 2012-05-24 20:20:12 +0000 (Thu, 24 May 2012)
Log Message:
-----------
Fix bug [#31512] Focus Zoom on text object with modifers fails
Change BKE_object_minmax() to use the same logic as meshes: use the
object bounding box if available, since it will include the modifier
DM output.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/object.c
Modified: trunk/blender/source/blender/blenkernel/intern/object.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/object.c 2012-05-24 20:03:09 UTC (rev 46984)
+++ trunk/blender/source/blender/blenkernel/intern/object.c 2012-05-24 20:20:12 UTC (rev 46985)
@@ -2258,8 +2258,15 @@
{
Curve *cu = ob->data;
- if (cu->bb == NULL) BKE_curve_texspace_calc(cu);
- bb = *(cu->bb);
+ /* Use the object bounding box so that modifier output
+ gets taken into account */
+ if (ob->bb)
+ bb = *(ob->bb);
+ else {
+ if (cu->bb == NULL)
+ BKE_curve_texspace_calc(cu);
+ bb = *(cu->bb);
+ }
for (a = 0; a < 8; a++) {
mul_m4_v3(ob->obmat, bb.vec[a]);
More information about the Bf-blender-cvs
mailing list