Skip to content

Commit

Permalink
World em fix (#104)
Browse files Browse the repository at this point in the history
This PR fixes bug #98.
  • Loading branch information
bathal1 authored May 27, 2024
1 parent 6bb4c06 commit 5a12add
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mitsuba-blender/io/importer/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
importlib.reload(mi_spectra_utils)
if "bl_image_utils" in locals():
importlib.reload(bl_image_utils)

import bpy

from mathutils import Color
Expand All @@ -25,7 +25,7 @@ def write_mi_srgb_emitter_spectrum(mi_context, mi_obj, bl_world_wrap, radiance_s
bl_world_wrap.out_node.inputs[strength_socket_id].default_value = strength

_emitter_spectrum_object_writers = {
'SRGBEmitterSpectrum': write_mi_srgb_emitter_spectrum
'SRGBReflectanceSpectrum': write_mi_srgb_emitter_spectrum
}

def write_mi_emitter_spectrum_object(mi_context, mi_obj, bl_world_wrap, radiance_socket_id, strength_socket_id, default=None):
Expand Down Expand Up @@ -113,7 +113,7 @@ def write_mi_emitter_to_node_graph(mi_context, mi_emitter, bl_world_wrap, out_so

def mi_emitter_to_bl_world(mi_context, mi_emitter):
''' Create a Blender node tree representing a given Mitsuba emitter
Params
------
mi_context : Mitsuba import context
Expand Down

0 comments on commit 5a12add

Please sign in to comment.