Made the basic RNA changes for Tex(ture), no properties wrapped yet.
authorNicholas Bishop <nicholasbishop@gmail.com>
Fri, 2 Jan 2009 23:05:28 +0000 (23:05 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Fri, 2 Jan 2009 23:05:28 +0000 (23:05 +0000)
source/blender/editors/space_outliner/outliner.c
source/blender/makesrna/RNA_access.h
source/blender/makesrna/intern/CMakeLists.txt
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_ID.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_main.c
source/blender/makesrna/intern/rna_texture.c [new file with mode: 0644]

index c3c45466ac1f4944e831d415cf547e2d8dbc45de..7992e44224335d4a63c7a7097267fe69faf26b47 100644 (file)
@@ -3203,8 +3203,8 @@ static int tselem_rna_icon(PointerRNA *ptr)
                return ICON_PARTICLES;
        else if(rnatype == &RNA_Material)
                return ICON_MATERIAL;
-       /*else if(rnatype == &RNA_Texture)
-               return ICON_TEXTURE;*/
+       else if(rnatype == &RNA_Texture)
+               return ICON_TEXTURE;
        else if(rnatype == &RNA_Image)
                return ICON_TEXTURE;
        else if(rnatype == &RNA_Screen)
index db9888660749aace7cc9b3b69b67219f650653c2..546edde85c32ae1b1d822d2127c5955edfb76092 100644 (file)
@@ -207,6 +207,7 @@ extern StructRNA RNA_Text;
 extern StructRNA RNA_TextBox;
 extern StructRNA RNA_TextLine;
 extern StructRNA RNA_TextMarker;
+extern StructRNA RNA_Texture;
 extern StructRNA RNA_TouchSensor;
 extern StructRNA RNA_TransformSequence;
 extern StructRNA RNA_UVProjectModifier;
index 0c6d28d417290a4fc38de41b036452b585d6b568..648714e056b17d64ff609701e3cd6ec33aff697e 100644 (file)
@@ -63,6 +63,7 @@ SET(SRC
      rna_sequence.c
      rna_sound.c
      rna_text.c
+     rna_texture.c
      rna_userdef.c
      rna_vfont.c
      rna_wm.c
index cebcd3a4d63ae6044fc20ea97511990a68e6256e..2848b1736a3d1b24e3941f10891357da7bbe23a6 100644 (file)
@@ -932,6 +932,7 @@ RNAProcessItem PROCESS_ITEMS[]= {
        {"rna_sensor.c", RNA_def_sensor},
        {"rna_sequence.c", RNA_def_sequence},
        {"rna_text.c", RNA_def_text},
+       {"rna_texture.c", RNA_def_texture},
        {"rna_sound.c", RNA_def_sound},
        {"rna_userdef.c", RNA_def_userdef},
        {"rna_vfont.c", RNA_def_vfont},
index ea87a8ec0f4cb72f1cfc226e7d83dbb68b120726..0a70fbb42bde74b0fe471dba8089dedc34291774 100644 (file)
@@ -78,6 +78,7 @@ static StructRNA *rna_ID_refine(PointerRNA *ptr)
                case ID_SCR: return &RNA_Screen;
                case ID_SO: return &RNA_Sound;
                case ID_TXT: return &RNA_Text;
+               case ID_TE: return &RNA_Texture;
                case ID_VF: return &RNA_VectorFont;
                case ID_WO: return &RNA_World;
                case ID_WM: return &RNA_WindowManager;
index 8f416f6f997c620ae16ad0e27213fa2466bdebf2..01177314f2cc6c4545b07adf2939fa548b5c2e67 100644 (file)
@@ -129,6 +129,7 @@ void RNA_def_scriptlink(struct BlenderRNA *brna);
 void RNA_def_sensor(struct BlenderRNA *brna);
 void RNA_def_sequence(struct BlenderRNA *brna);
 void RNA_def_text(struct BlenderRNA *brna);
+void RNA_def_texture(struct BlenderRNA *brna);
 void RNA_def_sound(struct BlenderRNA *brna);
 void RNA_def_userdef(struct BlenderRNA *brna);
 void RNA_def_vfont(struct BlenderRNA *brna);
index 0f809b99edc8c48972f16edc523fc48f91ca9cf5..59cf3bf02acae547ef526ab3c28d50fe9f9126a2 100644 (file)
@@ -236,7 +236,7 @@ void RNA_def_main(BlenderRNA *brna)
                {"curves", "Curve", "rna_Main_curve_begin", "Curves", "Curve datablocks."}, 
                {"metaballs", "MetaBall", "rna_Main_mball_begin", "Metaballs", "Metaball datablocks."},
                {"vfonts", "VectorFont", "rna_Main_vfont_begin", "Vector Fonts", "Vector font datablocks."},
-               {"textures", "ID", "rna_Main_tex_begin", "Textures", "Texture datablocks."},
+               {"textures", "Texture", "rna_Main_tex_begin", "Textures", "Texture datablocks."},
                {"ipos", "Ipo", "rna_Main_ipo_begin", "Ipos", "Ipo datablocks."},
                {"brushes", "Brush", "rna_Main_brush_begin", "Brushes", "Brush datablocks."},
                {"worlds", "World", "rna_Main_world_begin", "Worlds", "World datablocks."},
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c
new file mode 100644 (file)
index 0000000..4b0780d
--- /dev/null
@@ -0,0 +1,48 @@
+/**
+ * $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 "RNA_define.h"
+#include "RNA_types.h"
+
+#include "rna_internal.h"
+
+#include "DNA_texture_types.h"
+
+#ifdef RNA_RUNTIME
+
+#else
+
+void RNA_def_texture(BlenderRNA *brna)
+{
+       StructRNA *srna;
+       PropertyRNA *prop;
+
+       srna= RNA_def_struct(brna, "Texture", "ID");
+       RNA_def_struct_sdna(srna, "Tex");
+       RNA_def_struct_ui_text(srna, "Texture", "DOC_BROKEN");
+
+       
+}
+
+#endif