From 2eb6300d5f5043f6d4ec897ff68574359ca490b0 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Thu, 12 Sep 2019 02:11:02 +0300 Subject: [PATCH] fix Show-related imports --- src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py | 2 +- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py index a2a946dffb..63109115a1 100644 --- a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py +++ b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py @@ -30,7 +30,7 @@ Q = App.Units.Quantity from AttachmentEditor.FrozenClass import FrozenClass try: - from Show.TempoVis import TempoVis + from Show import TempoVis from Show.DepGraphTools import getAllDependent except ImportError as err: def TempoVis(doc): diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 7a8d9f522c..8d5b7f3f4a 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -5665,7 +5665,7 @@ bool ViewProviderSketch::setEdit(int ModNum) //visibility automation try{ - Gui::Command::addModule(Gui::Command::Gui,"Show.TempoVis"); + Gui::Command::addModule(Gui::Command::Gui,"Show"); try{ QString cmdstr = QString::fromLatin1( "ActiveSketch = App.getDocument('%1').getObject('%2')\n"