Blender Git Loki

Git Commits -> Revision 3fa0a1a

Revision 3fa0a1a by Philipp Oeser (master)
August 13, 2015, 16:12 (GMT)
Add real boundbox support to lattice, and update armature one.

* draw lattice boundingboxes in 3dView [if "show_bounds" is used -- an option previously pretty useless for lattices]
* give proper values for lattice objects ".bound_box" in bpy
* give proper values for armature objects ".bound_box" in bpy
* lets users use "Dimensions" [in 3dView Transform panel] on lattices and armatures
* remove redundant calculations in "boundbox_armature()"

Armatures boundingboxes were already drawn in 3dView, if "show_bounds" was used.

Based on report T45735: Lattice's bounding_box doesn't update,
and a comment in code by @campbellbarton ("later we may want to add dimensions for lattice, armature etc too").

Revision: https://developer.blender.org/D1460

Commit Details:

Full Hash: 3fa0a1a5bc0ff28328930ee12608497262b25912
Parent Commit: d2383ec
Committed By: Bastien Montagne
Lines Changed: +41, -18

6 Modified Paths:

/source/blender/blenkernel/BKE_lattice.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/armature.c (+3, -15) (Diff)
/source/blender/blenkernel/intern/lattice.c (+25, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+7, -0) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+3, -0) (Diff)
/source/blender/editors/space_view3d/view3d_buttons.c (+2, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021