From 256494807f995e7e78fde3f898d6c03920eff549 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Mon, 11 Jun 2018 17:02:24 -0400 Subject: [PATCH] Fixed a bug where any commented instance of show_object would throw an error. --- CQGui/Command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CQGui/Command.py b/CQGui/Command.py index a574d14..46023c8 100644 --- a/CQGui/Command.py +++ b/CQGui/Command.py @@ -153,7 +153,7 @@ class CadQueryExecuteScript: scriptText = cqCodePane.toPlainText().encode('utf-8') # Check to see if we are executig a CQGI compliant script - if ("show_object(" in scriptText and "# show_object(" not in scriptText and "#show_boject(" not in scriptText) or ("debug(" in scriptText and "# debug(" not in scriptText and "#debug(" not in scriptText): + if "show_object(" in scriptText or "debug(" in scriptText: FreeCAD.Console.PrintMessage("Executing CQGI-compliant script.\r\n") # A repreentation of the CQ script with all the metadata attached