Create possibility to provide render settings via BlenderSceneDelegate. #12

Merged
Bogdan Nagirniak merged 1 commits from BLEN-349 into storm-hydra-addon 2023-05-19 20:29:32 +02:00

View File

@ -25,7 +25,7 @@ class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
bpy_hydra.register_plugins([str(Path(__file__).parent / "plugin")]) bpy_hydra.register_plugins([str(Path(__file__).parent / "plugin")])
def get_delegate_settings(self, engine_type): def get_render_settings(self, engine_type):
settings = bpy.context.scene.hydra_storm settings = bpy.context.scene.hydra_storm
return { return {
'enableTinyPrimCulling': settings.enable_tiny_prim_culling, 'enableTinyPrimCulling': settings.enable_tiny_prim_culling,