Skip to content

Commit

Permalink
draw in xray (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamahigashi committed Nov 30, 2017
1 parent a777d3f commit faac54d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plug-ins/sceneRenderOverride.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ def _draw(self, manager, dagPath, tool, activeAxis):
posz = worldMat.getElement(3, 2)
point = om.MPoint(posx, posy, posz)

manager.beginDrawable()
xcol = self.hiColor if activeAxis == 0 else self.xcolor
ycol = self.hiColor if activeAxis == 1 else self.ycolor
zcol = self.hiColor if activeAxis == 2 else self.zcolor

manager.beginDrawInXray()

if "move" == tool:
self._drawArrow(manager, point, worldMat, rotMat, self.xmat, xcol)
Expand All @@ -178,7 +178,7 @@ def _draw(self, manager, dagPath, tool, activeAxis):
self._drawCircle(manager, point, worldMat, rotMat, self.ymat, ycol)
self._drawCircle(manager, point, worldMat, rotMat, self.zmat, zcol)

manager.endDrawable()
manager.endDrawInXray()

def _drawArrow(self, manager, basePoint, worldMat, rotMat, distanceMat, color):
# type: (omui.MUIDrawManager, om.MPoint, om.MMatrix, om.MMatrix, om.MMatrix, om.MColor) -> None
Expand Down

0 comments on commit faac54d

Please sign in to comment.