Skip to content

Commit

Permalink
feat: warning propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanParmer committed Nov 17, 2024
1 parent abb7b47 commit 380d60c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NodeToPython/ntp_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ def _create_node(self, node: Node, node_tree_var: str) -> str:
# hide
if node.hide:
self._write(f"{node_var}.hide = True")

# Warning propagation
if bpy.app.version >= (4, 3, 0):
self._write(f"{node_var}.warning_propagation = "
f"{enum_to_py_str(node.warning_propagation)}")
return node_var

def _set_settings_defaults(self, node: Node) -> None:
Expand Down

0 comments on commit 380d60c

Please sign in to comment.