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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user