Gui: add tags for TempoVis

Tags can be used to identify TV instances in the stack.  This is mostly for add-ons, for Part-o-magic in particular, who may want to insert some visibility automation in specific places in the stack.
This commit is contained in:
DeepSOIC
2019-09-02 22:38:26 +03:00
committed by Yorik van Havre
parent d33c7b724c
commit ec7c18bef3
4 changed files with 4 additions and 4 deletions

View File

@@ -5668,7 +5668,7 @@ bool ViewProviderSketch::setEdit(int ModNum)
try{
QString cmdstr = QString::fromLatin1(
"ActiveSketch = App.getDocument('%1').getObject('%2')\n"
"tv = Show.TempoVis(App.ActiveDocument)\n"
"tv = Show.TempoVis(App.ActiveDocument, tag= ActiveSketch.ViewObject.TypeId)\n"
"if ActiveSketch.ViewObject.EditingWorkbench:\n"
" tv.activateWorkbench(ActiveSketch.ViewObject.EditingWorkbench)\n"
"if ActiveSketch.ViewObject.HideDependent:\n"