remove rna func scene.collada_export(), export functions dont exist for any other...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 3 Jan 2011 07:42:30 +0000 (07:42 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 3 Jan 2011 07:42:30 +0000 (07:42 +0000)
source/blender/makesrna/SConscript
source/blender/makesrna/intern/CMakeLists.txt
source/blender/makesrna/intern/SConscript
source/blender/makesrna/intern/rna_scene_api.c
source/blenderplayer/bad_level_call_stubs/stubs.c

index 993fa6adde543b49cfd83a7448c42e740f0f693f..a64963ff03ec73852ddf7dbd49e417531c6eabc9 100644 (file)
@@ -48,9 +48,6 @@ if env['WITH_BF_LCMS']:
 if env['WITH_BF_GAMEENGINE']:
     defs.append('WITH_GAMEENGINE')
 
 if env['WITH_BF_GAMEENGINE']:
     defs.append('WITH_GAMEENGINE')
 
-if env['WITH_BF_COLLADA']:
-    defs.append('WITH_COLLADA')
-
 if env['BF_UNIT_TEST']:
     defs.append('UNIT_TEST')
 
 if env['BF_UNIT_TEST']:
     defs.append('UNIT_TEST')
 
index 4e624b76c7d67477f211b0e2e57ffb5b0f40e137..ecb0d903ae6caee480c08057d2f9efb3991da1c8 100644 (file)
@@ -136,10 +136,6 @@ if(WITH_JACK)
        add_definitions(-DWITH_JACK)
 endif()
 
        add_definitions(-DWITH_JACK)
 endif()
 
-if(WITH_OPENCOLLADA)
-       add_definitions(-DWITH_COLLADA)
-endif()
-
 # Build makesrna executable
 add_executable(makesrna ${SRC} ${INC_FILES})
 target_link_libraries(makesrna bf_dna)
 # Build makesrna executable
 add_executable(makesrna ${SRC} ${INC_FILES})
 target_link_libraries(makesrna bf_dna)
index ac71e29255295cb24c0c2c224f3dc7e24e27ebae..5d49b626f54323ee63b0d09b046f3555c717910f 100644 (file)
@@ -88,9 +88,6 @@ if env['BF_UNIT_TEST']:
 if env['WITH_BF_PYTHON']:
     defs.append('WITH_PYTHON')
 
 if env['WITH_BF_PYTHON']:
     defs.append('WITH_PYTHON')
 
-if env['WITH_BF_COLLADA']:
-    defs.append('WITH_COLLADA')
-
 if env['OURPLATFORM'] == 'linux2':
     cflags='-pthread'
     incs += ' ../../../extern/binreloc/include'
 if env['OURPLATFORM'] == 'linux2':
     cflags='-pthread'
     incs += ' ../../../extern/binreloc/include'
index f14b57e2b33662fd609c215ce72bf866d92e4065..e891d64d514cbc01e5dd49b5a7f7dad7a616f85d 100644 (file)
@@ -76,19 +76,6 @@ static void rna_SceneRender_get_frame_path(RenderData *rd, int frame, char *name
                BKE_makepicstring(name, rd->pic, (frame==INT_MIN) ? rd->cfra : frame, rd->imtype, rd->scemode & R_EXTENSION, TRUE);
 }
 
                BKE_makepicstring(name, rd->pic, (frame==INT_MIN) ? rd->cfra : frame, rd->imtype, rd->scemode & R_EXTENSION, TRUE);
 }
 
-#ifdef WITH_COLLADA
-
-#include "../../collada/collada.h"
-
-static void rna_Scene_collada_export(Scene *scene, const char *filepath)
-{
-       /* XXX not really nice, as this will bring essentially in COLLADA as dependency for
-        * blenderplayer. For now stubbing in blc. */
-       collada_export(scene, filepath);
-}
-
-#endif
-
 #else
 
 void RNA_api_scene(StructRNA *srna)
 #else
 
 void RNA_api_scene(StructRNA *srna)
@@ -104,14 +91,6 @@ void RNA_api_scene(StructRNA *srna)
 
        func= RNA_def_function(srna, "update", "rna_Scene_update_tagged");
        RNA_def_function_ui_description(func, "Update data tagged to be updated from previous access to data or operators.");
 
        func= RNA_def_function(srna, "update", "rna_Scene_update_tagged");
        RNA_def_function_ui_description(func, "Update data tagged to be updated from previous access to data or operators.");
-
-#ifdef WITH_COLLADA
-       func= RNA_def_function(srna, "collada_export", "rna_Scene_collada_export");
-       parm= RNA_def_string(func, "filepath", "", FILE_MAX, "File Path", "File path to write Collada file.");
-       RNA_def_property_flag(parm, PROP_REQUIRED);
-       RNA_def_property_subtype(parm, PROP_FILEPATH); /* allow non utf8 */
-       RNA_def_function_ui_description(func, "Export to collada file.");
-#endif
 }
 
 void RNA_api_scene_render(StructRNA *srna)
 }
 
 void RNA_api_scene_render(StructRNA *srna)
index 48b14c3881d31b8a09d8c618d07bb5e73b28885b..8f1cc4d839e56327e1275468be9df976136ff35e 100644 (file)
@@ -378,10 +378,6 @@ char *WM_operator_pystring(struct bContext *C, struct wmOperatorType *ot, struct
 struct wmKeyMapItem *WM_modalkeymap_add_item(struct wmKeyMap *km, int type, int val, int modifier, int keymodifier, int value){return (struct wmKeyMapItem *)NULL;}
 struct wmKeyMap *WM_modalkeymap_add(struct wmKeyConfig *keyconf, char *idname, EnumPropertyItem *items){return (struct wmKeyMap *) NULL;}
 
 struct wmKeyMapItem *WM_modalkeymap_add_item(struct wmKeyMap *km, int type, int val, int modifier, int keymodifier, int value){return (struct wmKeyMapItem *)NULL;}
 struct wmKeyMap *WM_modalkeymap_add(struct wmKeyConfig *keyconf, char *idname, EnumPropertyItem *items){return (struct wmKeyMap *) NULL;}
 
-/* RNA Collada dependency */
-int collada_export(struct Scene *sce, const char *filepath){return 0;}
-
-
 /* intern/decimation */
 int LOD_FreeDecimationData(struct LOD_Decimation_Info *info){return 0;}
 int LOD_CollapseEdge(struct LOD_Decimation_Info *info){return 0;}
 /* intern/decimation */
 int LOD_FreeDecimationData(struct LOD_Decimation_Info *info){return 0;}
 int LOD_CollapseEdge(struct LOD_Decimation_Info *info){return 0;}