From 93aba9975c2d2a615adc61379416e362771a9a67 Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Tue, 23 Jul 2024 14:12:10 +1200 Subject: [PATCH] node widget fix causing seg fault. --- NodeGraphQt/nodes/base_node.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NodeGraphQt/nodes/base_node.py b/NodeGraphQt/nodes/base_node.py index 2c505b41..ace12998 100644 --- a/NodeGraphQt/nodes/base_node.py +++ b/NodeGraphQt/nodes/base_node.py @@ -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): """