Blender Git Commit Log

Git Commits -> Revision b429a65

Revision b429a65 by Chingiz Dyussenov (master)
June 9, 2009, 14:53 (GMT)
Added two RNA struct functions - merely wrappers around the C api.

- add_mesh to Main - calls C add_mesh and returns a new mesh
- copy to Mesh - calls C copy_mesh and returns a new copy

Not sure about function placement and naming though.
Put both functions in editmesh.c, mesh editor module. Added prototypes
to rna_internal.h. Prefixed both with "RNA_api_".

Wanted to code Mesh.copy so that it copies Mesh data from another object
instead of creating a new Mesh, but this needs CustomData manipulations
which I should study later.

Maybe we need a separate file for API functions? e.g. mesh_api.c?

Commit Details:

Full Hash: b429a65ed6f1d53e74bd6cc913a32092a1d191a9
SVN Revision: 20757
Parent Commit: cb82ef0
Lines Changed: +65, -0

4 Modified Paths:

/source/blender/editors/mesh/editmesh.c (+48, -0) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_main.c (+9, -0) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021