Blender Git Loki

Git Commits -> Revision 47345cf

Revision 47345cf by Nathan Letwory (master)
October 20, 2008, 12:33 (GMT)
=== Blender Python API ===

After some discussion with Campbell, changed the way cstruct sizeof is fetched.

Moved DataSize() to Blender.Types.CSizeof(Blendertype). Supported types return sizeof(data struct), otherwise -1.

To quickly check what types are supported:

import Blender.Types as bt
x = dir(bt)
for t in x:
if t[0] != '_':
s = 'bt.CSizeof(bt.' + t + ')'
print t,"=", eval(s)

Commit Details:

Full Hash: 47345cfd780a469bca4507d9b8d8f16dc56a2022
SVN Revision: 17130
Parent Commit: 25859cf
Lines Changed: +126, -79

5 Modified Paths:

/source/blender/python/api2_2x/Armature.c (+0, -24) (Diff)
/source/blender/python/api2_2x/Material.c (+0, -9) (Diff)
/source/blender/python/api2_2x/Mesh.c (+0, -31) (Diff)
/source/blender/python/api2_2x/Object.c (+0, -12) (Diff)
/source/blender/python/api2_2x/Types.c (+126, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021