Skip to content

Commit

Permalink
Merge pull request #33 from StyriamMZ/master
Browse files Browse the repository at this point in the history
4.4.1
  • Loading branch information
StyriamMZ authored Dec 29, 2022
2 parents 8550270 + 36547f0 commit a44e0b3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/indigo_exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "Blendigo - Indigo Exporter",
"description": "This Addon will allow you to render your scenes with the Indigo render engine.",
"author": "Glare Technologies Ltd.",
"version": (4, 4, 0),
"version": (4, 4, 1),
"blender": (2, 93, 0),
"location": "View3D",
"wiki_url": "",
Expand Down
Binary file modified sources/indigo_exporter/nodes/UberShader.bin
Binary file not shown.
Binary file removed sources/indigo_exporter/nodes/UberShader.bin0
Binary file not shown.
17 changes: 15 additions & 2 deletions sources/indigo_exporter/nodes/ubershader_utils.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import re
import bpy
from dataclasses import dataclass, field
from dataclasses import dataclass

import pickle
from pathlib import Path

# TODO:
# Coating, DoubleSidedThin materials use references to other materials, so it is not really suitable for the current node system. Best to leave it till full material nodes implementation.

current_uber_name = "_IndigoUberShader_v1"
current_uber_name = "_IndigoUberShader_v2"

@dataclass
class ParsedNode:
Expand Down Expand Up @@ -44,6 +44,19 @@ def generate_group(self):
node['parent'] = parent
if parent:
node['location'] = node_dict.pop('location')

if 'default_values' in node_dict:
default_values = node_dict.pop('default_values')
for socket, value in zip(node.inputs, default_values):
if value is None:
continue
try:
socket.default_value = value
except:
# TODO:
print('default_values error', socket, socket.default_value, value)
pass

for key, val in node_dict.items():
setattr(node, key, val)
if bl_idname == 'NodeGroupInput':
Expand Down

0 comments on commit a44e0b3

Please sign in to comment.