Fix color for manipulator drawing

Was drawing black after the first draw call.
For now set the shader before each draw call,
noted as TODO to investigate a nicer way to handle.
This commit is contained in:
Campbell Barton
2018-01-10 20:50:14 +11:00
parent 2b56faebe5
commit f59303bead
3 changed files with 14 additions and 10 deletions

View File

@@ -134,7 +134,7 @@ class MyCustomShapeWidgetGroup(ManipulatorGroup):
mpr.color = 1.0, 0.5, 1.0
mpr.alpha = 0.5
mpr.color_highlight = 1.0, 0.5, 1.0
mpr.color_highlight = 1.0, 1.0, 1.0
mpr.alpha_highlight = 0.5
# units are large, so shrink to something more reasonable.