diff --git a/BlenderMalt/MaltNodes/MaltNode.py b/BlenderMalt/MaltNodes/MaltNode.py index 685daeb1..7dbd2335 100644 --- a/BlenderMalt/MaltNodes/MaltNode.py +++ b/BlenderMalt/MaltNodes/MaltNode.py @@ -158,9 +158,13 @@ def setup(current, new): except: current[name].ui_label = name try: - default = dic['meta']['default'] - if isinstance(default, str): - current[name].default_initialization = default + meta = dic['meta'] + if 'default_initialization' in meta: + current[name].default_initialization = meta['default_initialization'] + else: + default = meta['default'] + if isinstance(default, str): + current[name].default_initialization = default except: pass if is_new_socket: diff --git a/BlenderMalt/MaltNodes/Nodes/MaltIONode.py b/BlenderMalt/MaltNodes/Nodes/MaltIONode.py index d90e1d9e..0418a8fa 100644 --- a/BlenderMalt/MaltNodes/Nodes/MaltIONode.py +++ b/BlenderMalt/MaltNodes/Nodes/MaltIONode.py @@ -45,7 +45,7 @@ def malt_setup(self, copy=None): if parameter['io'] in ['out','inout'] and self.is_output: if parameter['io'] == 'inout': if 'meta' not in parameter: parameter['meta'] = {} - parameter['meta']['default'] = parameter['name'] + parameter['meta']['default_initialization'] = parameter['name'] inputs[parameter['name']] = parameter if parameter['io'] in ['','in','inout'] and self.is_output == False: outputs[parameter['name']] = parameter