Importer base for Chingiz.
[blender-staging.git] / source / blender / collada / collada.cpp
index c53325095f6efecbb27dc84bde2b8bb091093e67..5aed51c0ba2630714c83a5ea13f3c0ca5388ead1 100644 (file)
@@ -1,11 +1,17 @@
-#include <stdio.h>
+#include "BKE_main.h"
 #include "BKE_scene.h"
+#include "BKE_context.h"
+
 #include "DocumentExporter.h"
+#include "DocumentImporter.h"
 
 extern "C"
 {
-       int collada_import(Scene *sce, const char *filepath)
+       int collada_import(bContext *C, const char *filepath)
        {
+               DocumentImporter imp;
+               imp.import(C, filepath);
+
                return 1;
        }