Skip to content

Commit

Permalink
Ignore sensor child plugins defined at the top level, as they are als…
Browse files Browse the repository at this point in the history
…o defined by the reference to them
  • Loading branch information
bathal1 committed May 29, 2024
1 parent 735197c commit f75a2ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mitsuba-blender/io/importer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,6 @@ def instantiate_bl_shape_object_node(mi_context, bl_node):
return True

def instantiate_bl_camera_object_node(mi_context, bl_node):
# FIXME: Move this for delayed instantiation as the whole scene needs to
# be created in order to support multiple camera settings.
# FIXME: Handle child nodes
bl_obj = bpy.data.objects.new(bl_node.id, bl_node.bl_data)
bl_obj.matrix_world = bl_node.world_matrix

Expand Down Expand Up @@ -343,7 +340,10 @@ def instantiate_sampler_properties_node(mi_context, bl_node):
}

def instantiate_bl_properties_node(mi_context, bl_node):

node_prop_type = bl_node.prop_type
if node_prop_type != common.BlenderPropertiesNodeType.INTEGRATOR and type(bl_node.parent) == common.BlenderSceneNode:
return True
if node_prop_type not in _bl_properties_node_instantiators:
mi_context.log(f'Unknown Blender property node type "{node_prop_type}".', 'ERROR')
return False
Expand Down

0 comments on commit f75a2ce

Please sign in to comment.