浏览代码

Add sanity check in display_update to avoid updating when exporting graph.

Joseph Brandenburg 9 月之前
父节点
当前提交
705b46cff9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      base_definitions.py

+ 2 - 0
base_definitions.py

@@ -76,6 +76,8 @@ class MantisTree(NodeTree):
 
 
     
     
     def display_update(self, context):
     def display_update(self, context):
+        if self.is_exporting:
+            return
         current_tree = bpy.context.space_data.path[-1].node_tree
         current_tree = bpy.context.space_data.path[-1].node_tree
         for node in current_tree.nodes:
         for node in current_tree.nodes:
             if hasattr(node, "display_update"):
             if hasattr(node, "display_update"):