[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29970] branches/soc-2010-jwilkins/source/ blender/makesrna/intern/rna_sequencer_api.c: * for some reason rna_sequencer_api.c didn' t get added to my local working copy

Jason Wilkins Jason.A.Wilkins at gmail.com
Mon Jul 5 08:51:12 CEST 2010


Revision: 29970
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29970
Author:   jwilkins
Date:     2010-07-05 08:51:12 +0200 (Mon, 05 Jul 2010)

Log Message:
-----------
* for some reason rna_sequencer_api.c didn't get added to my local working copy

Added Paths:
-----------
    branches/soc-2010-jwilkins/source/blender/makesrna/intern/rna_sequencer_api.c

Added: branches/soc-2010-jwilkins/source/blender/makesrna/intern/rna_sequencer_api.c
===================================================================
--- branches/soc-2010-jwilkins/source/blender/makesrna/intern/rna_sequencer_api.c	                        (rev 0)
+++ branches/soc-2010-jwilkins/source/blender/makesrna/intern/rna_sequencer_api.c	2010-07-05 06:51:12 UTC (rev 29970)
@@ -0,0 +1,72 @@
+/**
+ * $Id: rna_sequencer_api.c 29601 2010-06-21 22:16:13Z gsrb3d $
+ *
+ * ***** BEGIN GPL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Contributor(s): Blender Foundation (2010)
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "RNA_define.h"
+
+#include "BLO_sys_types.h" /* needed for intptr_t used in ED_mesh.h */
+
+#include "RNA_access.h"
+#include "RNA_define.h"
+
+#include "rna_internal.h"
+
+#include "DNA_scene_types.h"
+#include "DNA_sequence_types.h"
+
+#ifdef RNA_RUNTIME
+
+#include "BKE_report.h"
+#include "BKE_sequencer.h"
+
+static void rna_Sequence_swap_internal(Sequence *seq_self, ReportList *reports, Sequence *seq_other)
+{
+	if(seq_swap(seq_self, seq_other) == 0)
+		BKE_report(reports, RPT_ERROR, "both strips must be the same length");
+}
+
+#else
+
+void RNA_api_sequence_strip(StructRNA *srna)
+{
+	FunctionRNA *func;
+	PropertyRNA *parm;
+
+	func= RNA_def_function(srna, "getStripElem", "give_stripelem");
+	RNA_def_function_ui_description(func, "Return the strip element from a given frame or None.");
+	parm= RNA_def_int(func, "frame", 0, -MAXFRAME, MAXFRAME, "Frame", "The frame to get the strip element from", -MAXFRAME, MAXFRAME);
+	RNA_def_property_flag(parm, PROP_REQUIRED);
+	RNA_def_function_return(func, RNA_def_pointer(func, "elem", "SequenceElement", "", "strip element of the current frame"));
+
+	func= RNA_def_function(srna, "swap", "rna_Sequence_swap_internal");
+	RNA_def_function_flag(func, FUNC_USE_REPORTS);
+	parm= RNA_def_pointer(func, "other", "Sequence", "Other", "");
+	RNA_def_property_flag(parm, PROP_REQUIRED);
+}
+
+#endif





More information about the Bf-blender-cvs mailing list