diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-10 12:50:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-10 12:50:14 +0300 |
commit | f59303bead2ae4a25132edadf217a64cdd581dc5 (patch) | |
tree | 1d64b157ee7c0ddac1f5c91c239d12a104e3c87e /release/scripts/templates_py | |
parent | 2b56faebe5f2a8e2b37004485206007d22cdac1d (diff) |
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.
Diffstat (limited to 'release/scripts/templates_py')
-rw-r--r-- | release/scripts/templates_py/manipulator_custom_geometry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates_py/manipulator_custom_geometry.py b/release/scripts/templates_py/manipulator_custom_geometry.py index 0f1ab72f9ef..48bb6956f85 100644 --- a/release/scripts/templates_py/manipulator_custom_geometry.py +++ b/release/scripts/templates_py/manipulator_custom_geometry.py @@ -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. |