From 9d2208c5e69dda7bc8a531a1ebc7c894fdf95ca9 Mon Sep 17 00:00:00 2001 From: "georgiy.m.markelov@gmail.com" Date: Fri, 28 Jul 2023 16:25:53 +0300 Subject: [PATCH] improved warning message --- materialx/bl_nodes/vector.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/materialx/bl_nodes/vector.py b/materialx/bl_nodes/vector.py index 0ceac5aed..7cbf5ba81 100644 --- a/materialx/bl_nodes/vector.py +++ b/materialx/bl_nodes/vector.py @@ -1,6 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright 2022, AMD +import bpy + from .node_parser import NodeParser from . import log @@ -19,9 +21,9 @@ class ShaderNodeNormalMap(NodeParser): f"{DEFAULT_SPACE} will be used") space = DEFAULT_SPACE - if space == 'TANGENT': - log.warn("Ignoring unsupported UV Map", space, self.node, self.material, - "No UV Map will be used") + if space == 'TANGENT' and bpy.context.scene.render.engine == 'HYDRA_STORM': + log.warn("Known issue: HdStorm doesn't work good with tangent space. Consider changing to object space", + space, self.node, self.material) result = self.create_node('normalmap', 'vector3', inputs={ 'in': color , -- 2.30.2