[Bf-blender-cvs] CVS commit: blender/source/blender/python BPY_menus.c blender/source/blender/python/api2_2x Blender.c NMesh.c
Willian Padovani Germano
wgermano at ig.com.br
Sat Mar 19 19:23:05 CET 2005
ianwill (Willian Padovani Germano) 2005/03/19 19:23:05 CET
blender/source/blender/python/api2_2x Blender.c NMesh.c
- Added Blender.Run(script) + doc update (forgot to mention in my previous commit).
Trying to fix two mistakes from my previous commit:
- nmesh.transform(): forgot yesterday that affine vectors have 4th component = 0, now updated normals transformation accordingly.
- As Ton pointed, recursive parsing of scripts dirs in search of scripts was a mess. I simply forgot about the "//" trick and much worse, to protect against worst cases ("/", for example). Now the code uses BLI_convertstringcode to take care of "//", doesn't process if dir = "/" and there are limits:
max depth for traversing subdirs = 4
max dirs in the tree = 30.
I'll work more on this, check more, but these changes were tested and should make the code safer, of course, so I'm committing. Sorry about the mess, I should take lessons on defensive programming ...
Revision Changes Path
1.24 +32 -6 blender/source/blender/python/BPY_menus.c
1.54 +26 -12 blender/source/blender/python/api2_2x/Blender.c
1.60 +7 -8 blender/source/blender/python/api2_2x/NMesh.c
More information about the Bf-blender-cvs