Blender Git Commit Log

Git Commits -> Revision 3401307

Revision 3401307 by Ankit Meel (master)
June 28, 2020, 09:57 (GMT)
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

Commit Details:

Full Hash: 340130719f4dd6c6472b8c17717f24c6474ca13e
Parent Commit: df8847d
Lines Changed: +2, -2

2 Modified Paths:

/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021