diff --git a/src/converter/collada.cpp b/src/converter/collada.cpp index e4b5d860..b88e5a24 100644 --- a/src/converter/collada.cpp +++ b/src/converter/collada.cpp @@ -1087,6 +1087,7 @@ void loadNode(GeometryConverter *cvt, Transform transform, std::ostream &os, identifier = formatString("unnamedNode_%i", unnamedCtr); } } + prefixName = prefixName + std::string("/") + identifier; SLog(EInfo, "Converting node \"%s\" ..", identifier.c_str()); daeTArray > children = node.getChildren(); @@ -1190,7 +1191,7 @@ void loadNode(GeometryConverter *cvt, Transform transform, std::ostream &os, /* Recursively iterate through sub-nodes */ domNode_Array &nodes = node.getNode_array(); for (size_t i=0; i elements */ domInstance_node_Array &instanceNodes = node.getInstance_node_array(); diff --git a/tools/blender/mitsuba/operators/__init__.py b/tools/blender/mitsuba/operators/__init__.py index 6a9e21d6..f58e2c11 100644 --- a/tools/blender/mitsuba/operators/__init__.py +++ b/tools/blender/mitsuba/operators/__init__.py @@ -114,7 +114,10 @@ class MITSUBA_OT_preset_material_add(MITSUBA_OT_preset_base, bpy.types.Operator) pv.extend([ 'bpy.context.material.mitsuba_material.mitsuba_mat_%s.%s'%(mts_type, v['attr']) for v in sub_type.get_exportable_properties() ]) - + pv.extend([ + 'bpy.context.material.mitsuba_material.mitsuba_emission.%s'%v['attr'] for v in bpy.types.mitsuba_emission.get_exportable_properties() + ]) + self.preset_values = pv return super().execute(context) diff --git a/tools/blender/mitsuba/properties/material.py b/tools/blender/mitsuba/properties/material.py index a33d9fec..04e7966f 100644 --- a/tools/blender/mitsuba/properties/material.py +++ b/tools/blender/mitsuba/properties/material.py @@ -70,7 +70,6 @@ class mitsuba_emission(declarative_property_group): ''' controls = [ - 'use_emission', 'color', 'intensity', 'samplingWeight', diff --git a/tools/blender/mitsuba/ui/materials/composite.py b/tools/blender/mitsuba/ui/materials/composite.py index 20c0c11a..82252154 100644 --- a/tools/blender/mitsuba/ui/materials/composite.py +++ b/tools/blender/mitsuba/ui/materials/composite.py @@ -19,6 +19,7 @@ import bpy from mitsuba.ui.materials import mitsuba_material_sub +from properties_material import active_node_mat class ui_material_composite(mitsuba_material_sub, bpy.types.Panel): bl_label = 'Mitsuba Composite Material' @@ -32,7 +33,7 @@ class ui_material_composite(mitsuba_material_sub, bpy.types.Panel): def draw(self, context): super().draw(context) - mat = context.material.mitsuba_material.mitsuba_mat_composite + mat = active_node_mat(context.material).mitsuba_material.mitsuba_mat_composite weight = 0 missing = False selfRef = False