diff options
author | OmarSquircleArt <omar.squircleart@gmail.com> | 2019-08-16 18:59:12 +0300 |
---|---|---|
committer | OmarSquircleArt <omar.squircleart@gmail.com> | 2019-08-16 18:59:12 +0300 |
commit | 25f1783673de636a6f0ca4457df8c05bc685981a (patch) | |
tree | 7ecfedcc1eb9dfce5963f6d7ebd647795712a508 /source/blender/gpu/intern/gpu_extensions.c | |
parent | 39288768b5740fa621a1355334ffa878bfaa33b0 (diff) |
Fix T68702: Input socket in the Normal node isn't drawn properly.
The Normal vector socket in the Normal node wasn't drawn properly and
couldn't be controlled. Additionally, the socket name was drawn over it.
This happened because the socket had a default value of a zero vector.
To fix this, we set the default value to the unit vector `(0, 0, 1)`.
Moreover, we don't draw the UI name if the subtype is `PROP_DIRECTION`.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D5503
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
0 files changed, 0 insertions, 0 deletions