From dbc90c272455cc51d27486e9c0c7a3e245646eda Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Fri, 28 Oct 2022 23:36:26 -0500 Subject: [PATCH] register rand_color for use in console --- cq_editor/main_window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cq_editor/main_window.py b/cq_editor/main_window.py index d578ca8..eb32803 100644 --- a/cq_editor/main_window.py +++ b/cq_editor/main_window.py @@ -299,6 +299,7 @@ class MainWindow(QMainWindow,MainMixin): #CQ related items console.push_vars({'show' : obj_tree.addObject, 'show_object' : obj_tree.addObject, + 'rand_color' : self.components['debugger']._rand_color, 'cq' : cq, 'log' : Logger(self.name).info})