mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Warning message on copying node graph on Blender 4.0+ #3876
As we're still looking for a workaround
This commit is contained in:
@@ -197,6 +197,15 @@ class Blender:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def copy_node_graph(cls, material_to, material_from):
|
def copy_node_graph(cls, material_to, material_from):
|
||||||
|
|
||||||
|
# https://projects.blender.org/blender/blender/issues/108763
|
||||||
|
if bpy.app.version >= (4, 0):
|
||||||
|
print(
|
||||||
|
"WARNING. Copying node graph is not yet supported on Blender 4.0+ due Blender bug, "
|
||||||
|
f"copying node graph from {material_from.name} to {material_to.name} will be skipped"
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
temp_override = cls.get_shader_editor_context()
|
temp_override = cls.get_shader_editor_context()
|
||||||
shader_editor = temp_override["space"]
|
shader_editor = temp_override["space"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user