API structuring improvements according to design guidelines by Brecht,
authorArystanbek Dyussenov <arystan.d@gmail.com>
Thu, 18 Jun 2009 09:50:34 +0000 (09:50 +0000)
committerArystanbek Dyussenov <arystan.d@gmail.com>
Thu, 18 Jun 2009 09:50:34 +0000 (09:50 +0000)
commit29f5694ab8d2021bb0b9c197f95b228809b40897
tree43c1deda687841853cf66b7830db835068f3567b
parent449555315a45fe4e58cc20d5685c60063444543f
API structuring improvements according to design guidelines by Brecht,
for more info see
http://lists.blender.org/pipermail/bf-taskforce25/2009-June/000954.html.

Created *_api.c files in makesrna/intern. Among these only rna_api.c
is compiled on preprocesssing step. It contains code declaring RNA
struct functions, for example RNA_api_mesh declares all functions on
Mesh. The rest *_api.c files contain functions themselves.

Removed interface_api.c and moved its contents to rna_api.c.

Added remove_mesh function on Main.

Replaced copy and copy_mesh on Mesh with make_rendermesh which currently
does the same as copy_applied did (grasping mesh-related stuff needs
time).

SConscript tweaking so it builds ok.
13 files changed:
source/blender/editors/interface/SConscript
source/blender/editors/mesh/editmesh.c
source/blender/makesrna/intern/SConscript
source/blender/makesrna/intern/main_api.c [new file with mode: 0644]
source/blender/makesrna/intern/mesh_api.c [new file with mode: 0644]
source/blender/makesrna/intern/rna_api.c [moved from source/blender/editors/interface/interface_api.c with 82% similarity]
source/blender/makesrna/intern/rna_context.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_main.c
source/blender/makesrna/intern/rna_mesh.c
source/blender/makesrna/intern/rna_wm.c
source/blender/makesrna/intern/wm_api.c [new file with mode: 0644]
source/blender/python/intern/bpy_operator_wrap.c