Blender Git Loki

Git Commits -> Revision bc80c10

April 13, 2020, 15:24 (GMT)
UI: Draw real node sockets for node-input buttons and left-align them

Couple of reasons for this:
* Makes it easier to understand that and how these buttons map to nodes.
* These buttons represent node inputs, so it makes more sense to have the icons
on the left.
* We'd like to show the usual decorators on the right, but having two circles
for different purposes next to each other would be confusing.

Also respects the socket shape. So if a diamond shape is used for example, the
properties show that too.

I'm not sure if the previous icon textures were cached, either way this method
doesn't use the caching. So this adds a draw call for every socket icon which
is a bit annoying, but probably neglectable. Would be better if we'd use proper
icon textures or batches, but that's a separate change.

Differential Revision: https://developer.blender.org/D7409

Commit Details:

Full Hash: bc80c103835a6bd6aab590cd83517186f958c7e7
Parent Commit: b8c4d14
Lines Changed: +49, -36

4 Modified Paths:

/source/blender/editors/include/ED_node.h (+4, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+37, -21) (Diff)
/source/blender/editors/space_node/node_draw.c (+2, -3) (Diff)
/source/blender/editors/space_node/node_templates.c (+6, -11) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021