forked from blender/blender
BLEN-343: Create PreviewEngine #8
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BogdanNagirniak/blender#8
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "BLEN-343"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added preview engine.
changed
pxr::HdSceneDelegate
toBlenderSceneDelegate
added
enum Engine::EngineType
added
Engine::EngineType
toBlenderSceneDelegate
Use with https://github.com/bnagirniak/RPRHydraRenderBlenderAddon/pull/8
@ -47,3 +47,3 @@
_hydra.engine_sync(self.engine_ptr, depsgraph.as_pointer(), bpy.context.as_pointer(), delegate_settings)
_hydra.engine_render(self.engine_ptr, depsgraph.as_pointer())
_hydra.engine_render(self.engine_ptr, depsgraph.as_pointer(), engine_type)
revert this
@ -0,0 +7,4 @@
namespace blender::render::hydra {
class PreviewEngine : public Engine {
Maybe inherit from FinalEngine?
@ -24,2 +24,4 @@
class Engine {
public:
enum class EngineType {
move to BlenderSceneDelegate class
@ -0,0 +29,4 @@
void PreviewEngine::render(BL::Depsgraph &b_depsgraph)
{
if (!is_synced) {
check
if (!sceneDelegate)
instead is_synced