Swap visibility of clone and original while job editor is up.

This commit is contained in:
Markus Lampert
2017-08-28 12:10:12 -07:00
committed by wmayer
parent 9209778b79
commit 4fd8cbb40e
2 changed files with 33 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ from PathScripts.PathPreferences import PathPreferences
from PathScripts.PathPostProcessor import PostProcessor
from PySide import QtCore
if True:
if False:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
else:
@@ -120,6 +120,8 @@ class ObjectJob:
clone.Label = name
clone.addProperty('App::PropertyString', 'PathResource')
clone.PathResource = name
if clone.ViewObject:
clone.ViewObject.Visibility = False
setattr(obj, name, clone)
def onBeforeChange(self, obj, prop):