mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
black .
This commit is contained in:
@@ -644,9 +644,9 @@ class Style(bonsai.core.tool.Style):
|
|||||||
) -> tuple[tuple[float, float, float], float]:
|
) -> tuple[tuple[float, float, float], float]:
|
||||||
if material.node_tree:
|
if material.node_tree:
|
||||||
nodes = material.node_tree.nodes
|
nodes = material.node_tree.nodes
|
||||||
output_node = next(
|
output_node = next((n for n in nodes if n.type == "OUTPUT_MATERIAL" and n.is_active_output), None) or next(
|
||||||
(n for n in nodes if n.type == "OUTPUT_MATERIAL" and n.is_active_output), None
|
(n for n in nodes if n.type == "OUTPUT_MATERIAL"), None
|
||||||
) or next((n for n in nodes if n.type == "OUTPUT_MATERIAL"), None)
|
)
|
||||||
if output_node:
|
if output_node:
|
||||||
result = cls._color_from_shader_socket(output_node.inputs["Surface"])
|
result = cls._color_from_shader_socket(output_node.inputs["Surface"])
|
||||||
if result:
|
if result:
|
||||||
|
|||||||
Reference in New Issue
Block a user