diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 03:21:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 03:21:11 +0400 |
commit | 5fe5a8c2838edc62585e0ed72da23fbeb08ae5e1 (patch) | |
tree | 88e9e8828a78f49624a47a6485c634f0e12a28db /source/blender/makesrna/intern/rna_main_api.c | |
parent | c0bd076bfd27fab3f2d468c85206b59d1c7ab29e (diff) |
style cleanup: function definitions
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index cecd890ef13..024265c3d18 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -196,7 +196,8 @@ void rna_Main_objects_remove(Main *bmain, ReportList *reports, struct Object *ob } } -struct Material *rna_Main_materials_new(Main *UNUSED(bmain), const char *name){ +Material *rna_Main_materials_new(Main *UNUSED(bmain), const char *name) +{ ID *id = (ID *)BKE_material_add(name); id_us_min(id); return (Material *)id; @@ -212,7 +213,8 @@ void rna_Main_materials_remove(Main *bmain, ReportList *reports, struct Material /* XXX python now has invalid pointer? */ } -struct bNodeTree *rna_Main_nodetree_new(Main *UNUSED(bmain), const char *name, int type){ +bNodeTree *rna_Main_nodetree_new(Main *UNUSED(bmain), const char *name, int type) +{ bNodeTree *tree = ntreeAddTree(name, type, NODE_GROUP); id_us_min(&tree->id); |