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:
Diffstat (limited to 'source/blender/collada/collada.cpp')
-rw-r--r--source/blender/collada/collada.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/blender/collada/collada.cpp b/source/blender/collada/collada.cpp
new file mode 100644
index 00000000000..5aed51c0ba2
--- /dev/null
+++ b/source/blender/collada/collada.cpp
@@ -0,0 +1,26 @@
+#include "BKE_main.h"
+#include "BKE_scene.h"
+#include "BKE_context.h"
+
+#include "DocumentExporter.h"
+#include "DocumentImporter.h"
+
+extern "C"
+{
+ int collada_import(bContext *C, const char *filepath)
+ {
+ DocumentImporter imp;
+ imp.import(C, filepath);
+
+ return 1;
+ }
+
+ int collada_export(Scene *sce, const char *filepath)
+ {
+
+ DocumentExporter exp;
+ exp.exportCurrentScene(sce, filepath);
+
+ return 1;
+ }
+}