Blender Git Loki

Git Commits -> Revision 25f1783

Revision 25f1783 by Omar Emara (master)
August 16, 2019, 15:59 (GMT)
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:

Commit Details:

Full Hash: 25f1783673de636a6f0ca4457df8c05bc685981a
Parent Commit: 3928876
Lines Changed: +8, -3

2 Modified Paths:

/source/blender/editors/space_node/drawnode.c (+7, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_normal.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021