Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2008-12-02 00:23:58 +0300
committerAndrea Weikert <elubie@gmx.net>2008-12-02 00:23:58 +0300
commit23a77e76885d6833edc3bd69619f17174c23b8ee (patch)
tree2cdc29743e67a4ddc7cbdb498d64652e5655d2e8 /source/blender/makesrna/intern/rna_packedfile.c
parent31ffe5b65e98b8c34b184ad24daa5163d36ba68c (diff)
RNA
* DNA_packedFile_types: added rna definitions for packed files * also experimentally filled in correct struct 'PackedFile' in image rna for testing. * updated MSVC projectfiles (also for rna_curve.c and rna_vfont.c) Note: I removed PackedFile->flags, I did grep through source and a complete recompile of blender trunk svn without them too, so they obviously aren't needed anymore. A bit of cleaning up :)
Diffstat (limited to 'source/blender/makesrna/intern/rna_packedfile.c')
-rw-r--r--source/blender/makesrna/intern/rna_packedfile.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_packedfile.c b/source/blender/makesrna/intern/rna_packedfile.c
new file mode 100644
index 00000000000..0bbdd5bfd8c
--- /dev/null
+++ b/source/blender/makesrna/intern/rna_packedfile.c
@@ -0,0 +1,51 @@
+/**
+ * $Id$
+ *
+ * ***** 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Contributor(s): Blender Foundation (2008).
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+#include <stdlib.h>
+
+#include "RNA_define.h"
+#include "RNA_types.h"
+
+#include "rna_internal.h"
+
+#include "DNA_packedFile_types.h"
+
+#ifdef RNA_RUNTIME
+#else
+
+void RNA_def_packedfile(BlenderRNA *brna)
+{
+ StructRNA *srna;
+ PropertyRNA *prop;
+
+ srna= RNA_def_struct(brna, "PackedFile", NULL, "Packed File");
+
+ prop= RNA_def_property(srna, "size", PROP_INT, PROP_NONE);
+ RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
+ RNA_def_property_ui_text(prop, "Size", "Size of Packed File.");
+
+}
+
+#endif
+