Blender Git Loki

Git Commits -> Revision 2ba233a

Revision 2ba233a by Charlie Jolly (master)
August 22, 2019, 09:10 (GMT)
Nodes: Support for socket shapes other than circle

Previously there was already "draw_shape" property,
but it was doing nothing. This commit renames the
property to "display_shape". Furthermore, different
shapes like SQUARE and DIAMOND are supported now.

Currently, the shapes are drawn using the shader that also
draws keyframes. In the future we might want to separate
this.

The new shapes are not used anywhere yet, but they can
be used by addon developers and will probably be useful
when we want to support different kinds node systems later.
For example, different shapes can be used to distinguish
between data and control flow.

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

Commit Details:

Full Hash: 2ba233a31fead52820763fb6637dcae20eeed574
Parent Commit: 0356c8f
Committed By: Jacques Lucke
Lines Changed: +146, -47

8 Modified Paths:

/source/blender/editors/animation/keyframes_draw.c (+3, -1) (Diff)
/source/blender/editors/interface/interface_icons.c (+2, -1) (Diff)
/source/blender/editors/space_clip/clip_dopesheet_draw.c (+2, -1) (Diff)
/source/blender/editors/space_nla/nla_draw.c (+3, -1) (Diff)
/source/blender/editors/space_node/node_draw.c (+114, -27) (Diff)
/source/blender/gpu/shaders/gpu_shader_keyframe_diamond_vert.glsl (+2, -2) (Diff)
/source/blender/makesdna/DNA_node_types.h (+9, -6) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+11, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021