New export through plugin scheme for yafray. It is working on linux and mac os x
[blender.git] / source / blender / yafray / intern / api.cpp
index c484a88164181c1a938e980bf42a3d83f216d765..154743e76be366d6cd964952d4688fa04875edea 100755 (executable)
@@ -1,12 +1,15 @@
 #include "export_File.h"
+#include "export_Plugin.h"
 
 static yafrayFileRender_t byfile;
+static yafrayPluginRender_t byplugin;
 
-yafrayRender_t *YAFBLEND=&byfile;
+yafrayRender_t *YAFBLEND=&byplugin;
 
 extern "C" 
 {
-
+void YAF_switchPlugin() {YAFBLEND=&byplugin;}
+void YAF_switchFile() {YAFBLEND=&byfile;}
 int YAF_exportScene() { return (int)YAFBLEND->exportScene(); }
 //void YAF_displayImage() { YAFBLEND->displayImage(); }
 void YAF_addDupliMtx(Object* obj) { YAFBLEND->addDupliMtx(obj); }