BPython:
- new submodule Scene.Radio, for radiosity: still incomplete, but in shape for demos, updated SConscript to include it;
- new functions in Window module;
- doc updates: adding a todo file and a new start page for our docs: API_intro.py + other updates;
- small fix in Ipo.c provided by Damien McGuinnes (thanks!): Nathan has a patch with IPO additions and fixes for this and more, but until it is committed, there's this fix for Ipo.getCurve('LocX'), LocY, Z and QuatW,X,Y,Z too, according to Damien.
Other files:
- radpreprocess.c: added check for "during_script()" so eventual msgs don't popup during scripts;
- drawmesh.c: made a pointer (display list) be checked before accessed, fixes crash in scripts that forget to update display lists for subsurf meshes when a 3d view is in textured view mode.
Script: updated bevel_center by Loic Berthe.
This commit is contained in:
@@ -526,13 +526,14 @@ class Object:
|
||||
isn't modified, there's no need to recalculate this data. This method is
|
||||
here for the *few cases* where a script may need it, like when toggling
|
||||
the "SubSurf" mode for a mesh:
|
||||
|
||||
Example::
|
||||
object = Blender.Object.Get("Sphere")
|
||||
nmesh = object.getData()
|
||||
nmesh.setMode("SubSurf")
|
||||
nmesh.update() # don't forget to update!
|
||||
object.makeDisplayList()
|
||||
Blender.Window.RedrawAll() # and don't forget to redraw
|
||||
object = Blender.Object.Get("Sphere")
|
||||
nmesh = object.getData()
|
||||
nmesh.setMode("SubSurf")
|
||||
nmesh.update() # don't forget to update!
|
||||
object.makeDisplayList()
|
||||
Blender.Window.Redraw()
|
||||
|
||||
If you try this example without the line to update the display list, the
|
||||
object will disappear from the screen until you press "SubSurf".
|
||||
|
||||
Reference in New Issue
Block a user