diff --git a/addon/i3dio/node_classes/material.py b/addon/i3dio/node_classes/material.py index 8b8cf91..1961284 100644 --- a/addon/i3dio/node_classes/material.py +++ b/addon/i3dio/node_classes/material.py @@ -116,8 +116,11 @@ def _diffuse_from_nodes(self, node): file_id = self.i3d.add_file_image(diffuse_image_path) self.xml_elements['Texture'] = xml_i3d.SubElement(self.element, 'Texture') self._write_attribute('fileId', file_id, 'Texture') - # Write the diffuse colors - self._write_diffuse(diffuse) + else: + # Write the diffuse colors + emission_socket = node.inputs['Emission'] + if not emission_socket.is_linked: + self._write_diffuse(diffuse) def _emissive_from_nodes(self, node): emission_socket = node.inputs['Emission']