Skip to content

Commit

Permalink
WIP viewport engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Speierer committed Sep 22, 2024
1 parent 5a12add commit fe5739f
Show file tree
Hide file tree
Showing 4 changed files with 830 additions and 9 deletions.
7 changes: 6 additions & 1 deletion mitsuba-blender/engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def get_panels():
'VIEWLAYER_PT_layer_passes',
'RENDER_PT_simplify',
'RENDER_PT_color_management',
'RENDER_PT_freestyle'
'RENDER_PT_freestyle',
'RENDER_PT_gpencil'
}

panels = []
Expand All @@ -20,14 +21,18 @@ def get_panels():

def register():
from . import properties
from . import panels
properties.register()
panels.register()
bpy.utils.register_class(MitsubaRenderEngine)
for panel in get_panels():
panel.COMPAT_ENGINES.add('MITSUBA')

def unregister():
from . import properties
from . import panels
properties.unregister()
panels.unregister()
bpy.utils.unregister_class(MitsubaRenderEngine)
for panel in get_panels():
if 'MITSUBA' in panel.COMPAT_ENGINES:
Expand Down
Loading

0 comments on commit fe5739f

Please sign in to comment.