Blender Git Commit Log

Git Commits -> Revision dd17f7e

Revision dd17f7e by Willian Padovani Germano (master)
March 19, 2005, 18:23 (GMT)
BPython:
- 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 ...

Commit Details:

Full Hash: dd17f7e725a9380c1e73b90cab8465bc0546fb8e
SVN Revision: 3973
Parent Commit: 0d1738e
Lines Changed: +62, -23

3 Modified Paths:

/source/blender/python/api2_2x/Blender.c (+25, -11) (Diff)
/source/blender/python/api2_2x/NMesh.c (+6, -7) (Diff)
/source/blender/python/BPY_menus.c (+31, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021