forked from blender/blender
Implement Viewport render with material preview #56
@ -39,7 +39,9 @@ void PreviewEngine::update_render_result(std::vector<float> &pixels)
|
||||
|
||||
RenderLayer *layer = (RenderLayer *)result->layers.first;
|
||||
RenderPass *pass = (RenderPass *)layer->passes.first;
|
||||
memcpy(pass->buffer.data, pixels.data(), sizeof(float) * pass->rectx * pass->recty * pass->channels);
|
||||
memcpy(pass->buffer.data,
|
||||
pixels.data(),
|
||||
sizeof(float) * pass->rectx * pass->recty * pass->channels);
|
||||
|
||||
RE_engine_end_result(bl_engine_, result, false, false, false);
|
||||
}
|
||||
|
@ -15,8 +15,8 @@
|
||||
#include "DNA_node_types.h"
|
||||
BogdanNagirniak marked this conversation as resolved
Outdated
|
||||
|
||||
#include "BKE_node.h"
|
||||
#include "BKE_studiolight.h"
|
||||
#include "BKE_node_runtime.hh"
|
||||
#include "BKE_studiolight.h"
|
||||
#include "BLI_math_rotation.h"
|
||||
#include "BLI_path_util.h"
|
||||
#include "NOD_shader.h"
|
||||
|
Loading…
Reference in New Issue
Block a user
shouldn't be needed