Part: fix imports of Show.TempoVis

This commit is contained in:
DeepSOIC
2018-05-15 15:22:59 +03:00
committed by Yorik van Havre
parent 78f054f09f
commit 0c4c04156c
2 changed files with 4 additions and 4 deletions

View File

@@ -175,8 +175,8 @@ void DlgExtrusion::on_btnSelectEdge_clicked()
//visibility automation
try{
QString code = QString::fromLatin1(
"import TempoVis\n"
"tv = TempoVis.TempoVis(App.ActiveDocument)\n"
"import Show\n"
"tv = Show.TempoVis(App.ActiveDocument)\n"
"tv.hide([%1])"
);
std::vector<App::DocumentObject*>sources = getShapesToExtrude();

View File

@@ -890,9 +890,9 @@ void TaskAttacher::visibilityAutomation(bool opening_not_closing)
return;
try{
QString code = QString::fromLatin1(
"import TempoVis\n"
"import Show\n"
"from Show.DepGraphTools import getAllDependent, isContainer\n"
"tv = TempoVis.TempoVis(App.ActiveDocument)\n"
"tv = Show.TempoVis(App.ActiveDocument)\n"
"dep_features = [o for o in getAllDependent(%1) if not isContainer(o)]\n"
"if %1.isDerivedFrom('PartDesign::CoordinateSystem'):\n"
"\tvisible_features = [feat for feat in %1.InList if feat.isDerivedFrom('PartDesign::FeaturePrimitive')]\n"