node_shader_utils: Proper fix for node_normalmap accessor returning ellipsis value.
Ellipsis value is internal ingredient only, to tag hidden _node_normalmap 'real' property as not yet initialized. Public node_normalmap accessor should never ever have that value, it's either None or a valid node!
This commit is contained in:
parent
5c038a6930
commit
65ea9ec948
@ -230,9 +230,8 @@ class PrincipledBSDFWrapper(ShaderWrapper):
|
|||||||
|
|
||||||
|
|
||||||
def node_normalmap_get(self):
|
def node_normalmap_get(self):
|
||||||
if not self.use_nodes:
|
if not self.use_nodes or self.node_principled_bsdf is None:
|
||||||
return None
|
return None
|
||||||
if self.node_principled_bsdf is not None:
|
|
||||||
node_principled = self.node_principled_bsdf
|
node_principled = self.node_principled_bsdf
|
||||||
if self._node_normalmap is ...:
|
if self._node_normalmap is ...:
|
||||||
# Running only once, trying to find a valid normalmap node.
|
# Running only once, trying to find a valid normalmap node.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user