diff options
Diffstat (limited to 'source/blender/yafray/intern')
-rwxr-xr-x | source/blender/yafray/intern/export_File.cpp | 5 | ||||
-rw-r--r-- | source/blender/yafray/intern/export_Plugin.cpp | 4 | ||||
-rw-r--r-- | source/blender/yafray/intern/yafray_Render.h | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp index b7cd4b7bd57..2e1b63b2ecc 100755 --- a/source/blender/yafray/intern/export_File.cpp +++ b/source/blender/yafray/intern/export_File.cpp @@ -355,6 +355,11 @@ void yafrayFileRender_t::displayImage() fclose(fp); fp = NULL; + + // based on another assumption of ogl errors on my system, forgot to actually draw it... + re->result->renlay = render_get_active_layer(re, re->result); + re->display_draw(re->result, NULL); + } static string noise2string(short nbtype) diff --git a/source/blender/yafray/intern/export_Plugin.cpp b/source/blender/yafray/intern/export_Plugin.cpp index b7f4f776f6e..44567f28cf2 100644 --- a/source/blender/yafray/intern/export_Plugin.cpp +++ b/source/blender/yafray/intern/export_Plugin.cpp @@ -1898,10 +1898,6 @@ bool yafrayPluginRender_t::writeWorld() return true; } -// display_draw() needs render layer info -extern "C" { -#include "renderpipeline.h" -} bool blenderYafrayOutput_t::putPixel(int x, int y, const yafray::color_t &c, yafray::CFLOAT alpha, yafray::PFLOAT depth) { diff --git a/source/blender/yafray/intern/yafray_Render.h b/source/blender/yafray/intern/yafray_Render.h index 31369ff7475..fa7afdbcbd9 100644 --- a/source/blender/yafray/intern/yafray_Render.h +++ b/source/blender/yafray/intern/yafray_Render.h @@ -25,6 +25,8 @@ extern "C" { #include "BKE_image.h" #include "render_types.h" +/* display_draw() needs render layer info */ +#include "renderpipeline.h" /* useful matrix & vector operations */ #include "MTC_matrixops.h" |