[Bf-python] Text3d, ob.getBoundBox() and Blender.Redraw()
Ken Hughes
khughes at pacific.edu
Fri Mar 17 01:44:57 CET 2006
Chris Want wrote:
> Bug or feature?
>
> The following prints nonsense for a
> bounding box:
>
> import Blender
> from Blender import Material, Lamp, Object, Text3d, Scene
> scn = Scene.GetCurrent()
> ob = Object.New('Text')
> c= Text3d.New();
> c.setText("blah")
> ob.link(c)
> scn.link(ob)
> ob.makeDisplayList()
>
> print ob.getBoundBox()
> Blender.Redraw()
>
> But if I print the bounding box *after* a
> Blender.Redraw(), it prints the right
> information.
Maybe stivs can confirm, but I assume this is the case since
Object.makeDisplayList() is only flagging in the DAG that the
object needs to be recalculated. The actual update happens
when the 3d window is redrawn:
http://www.blender3d.org/cms/Dependency_Graph.633.0.html
Ken
More information about the Bf-python
mailing list