Arch: Wall and Struct tools now set the working plane before drawing

This commit is contained in:
Yorik van Havre
2013-07-18 16:26:00 -03:00
parent 08f031d6ca
commit f43fcd1fb5
4 changed files with 17 additions and 8 deletions

View File

@@ -232,12 +232,7 @@ class DraftTool:
self.ui.sourceCmd = self
self.ui.setTitle(name)
self.ui.show()
try:
rot = self.view.getCameraNode().getField("orientation").getValue()
upv = Vector(rot.multVec(coin.SbVec3f(0,1,0)).getValue())
plane.setup(DraftVecUtils.neg(self.view.getViewDirection()), Vector(0,0,0), upv)
except:
pass
plane.setup()
self.node = []
self.pos = []
self.constrain = None