[Bf-python] adding Blender.ReshadeAll method

Joe Eagar joeedh at gmail.com
Sun Feb 5 21:31:03 CET 2006


Ken Hughes wrote:
> bmx007 wrote:
>> It seems that the function 'reshadeall_displist (called when a lamp 
>> setting change or when object is transformed)
>> is not accessible via Python.
>> I propose ( i propose me do it)
>> a new function Blender.ReshadeAll()
>> or a parameter in the Redraw method ...
>> or anything else
>
> Is there any reason not to do this automatically in Blender.Redraw() 
> (or actually Blender.Window.Redraw(), which everything eventually 
> calls)? Seems like if there's a shaded 3D window it should just do this.
>
> Ken
The problem with that is you'd end up reshading the whole scene on each 
python-initiated redraw, which would be a waste of CPU time if you 
weren't doing anything to the scene.  Also, building shading lists 
should only be done in shaded drawing mode (and up).

As an example, if you were doing some 2D overlay thing (like for note 
taking or whatever) you wouldn't want to be spending drawing time 
reshading when you didn't have to.

joeedh



More information about the Bf-python mailing list