Skip to content

Commit

Permalink
node widget fix causing seg fault.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanvfx committed Jul 23, 2024
1 parent 00d06ba commit 93aba99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NodeGraphQt/nodes/base_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ def add_custom_widget(self, widget, widget_type=None, tab=None):
#: redraw node to address calls outside the "__init__" func.
self.view.draw_node()

#: HACK: calling the .parent() function here on the widget as it seems
# to address a seg fault issue when exiting the application.
widget.parent()

def add_combo_menu(self, name, label='', items=None, tooltip=None,
tab=None):
"""
Expand Down

0 comments on commit 93aba99

Please sign in to comment.