diff options
author | Ankit <ankitm> | 2020-06-27 17:48:40 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-06-28 12:57:29 +0300 |
commit | 340130719f4dd6c6472b8c17717f24c6474ca13e (patch) | |
tree | 5e8c9cf9adfd3d7fdc7fc9d4cec5f60ace3c3e64 /source/blender/gpu/intern/gpu_extensions.c | |
parent | df8847de6daaecafe6b9b090ca061c8252691bef (diff) |
Use const in nodeFindSocket
Since the function only iterates over the input members,
and matches their identifiers, `bNode *`can be `const`.
All other usages of the `nodeFindSocket` use it with
other functions that modify the node. (e.g.: ``nodeAddLink` )
But an exporter needs the node to be a `const`, so this
creates unnecessary and slightly unsafe design changes.
Reviewed By: JacquesLucke
Differential Revision: https://developer.blender.org/D8142
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
0 files changed, 0 insertions, 0 deletions