~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/makesrna/intern/rna_scene_api.c

  • Committer: Package Import Robot
  • Author(s): Kevin Roy
  • Date: 2011-10-21 14:21:47 UTC
  • mfrom: (14.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20111021142147-2yjgibwwnmqibacp
Tags: 2.59-1
* New Upstream Release 2.59 (Closes: #641085)
* debian/control: libglew dependency changed
  - changed Depends libglew1.5-dev to libglew1.6-dev
   due to transition. (Closes: #636177)
* update manpages
* change depends yafray to new yafaray packages 
      (Thanks to Matteo F. Vescovi)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: rna_scene_api.c 35828 2011-03-27 22:02:54Z jesterking $
 
2
 * $Id: rna_scene_api.c 38079 2011-07-04 08:59:28Z jesterking $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
85
85
/* don't remove this, as COLLADA exporting cannot be done through operators in render() callback. */
86
86
#include "../../collada/collada.h"
87
87
 
88
 
static void rna_Scene_collada_export(Scene *scene, const char *filepath)
 
88
static void rna_Scene_collada_export(Scene *scene, const char *filepath, int selected)
89
89
{
90
 
        collada_export(scene, filepath);
 
90
        collada_export(scene, filepath, selected);
91
91
}
92
92
 
93
93
#endif
112
112
        /* don't remove this, as COLLADA exporting cannot be done through operators in render() callback. */
113
113
        func= RNA_def_function(srna, "collada_export", "rna_Scene_collada_export");
114
114
        parm= RNA_def_string(func, "filepath", "", FILE_MAX, "File Path", "File path to write Collada file.");
 
115
        parm= RNA_def_boolean(func, "selected", 0, "Export only selected", "Export only selected elements.");
115
116
        RNA_def_property_flag(parm, PROP_REQUIRED);
116
117
        RNA_def_property_subtype(parm, PROP_FILEPATH); /* allow non utf8 */
117
118
        RNA_def_function_ui_description(func, "Export to collada file.");