io_scene_3ds: Update for Principled BSDF specularity #104917

Merged
Sebastian Sille merged 87 commits from :main into main 2023-09-26 19:41:09 +02:00
Showing only changes of commit 512974e200 - Show all commits

View File

@ -1206,8 +1206,8 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, CONSTRAI
keyframe_data = {} keyframe_data = {}
default_data = child.color[:] default_data = child.color[:]
child.color = read_track_data(new_chunk)[0] child.color = read_track_data(new_chunk)[0]
ambilite.color = child.color ambinode.inputs[0].default_value[:3] = child.color
ambinode.inputs[0].default_value[:3] = ambilite.color ambilite.outputs[0].default_value[:3] = child.color
for keydata in keyframe_data.items(): for keydata in keyframe_data.items():
ambinode.inputs[0].default_value[:3] = keydata[1] ambinode.inputs[0].default_value[:3] = keydata[1]
child.color = ambilite.outputs[0].default_value[:3] = keydata[1] child.color = ambilite.outputs[0].default_value[:3] = keydata[1]