diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-09-09 17:39:45 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2021-09-09 17:39:45 +0300 |
commit | 62ec88eb846a8c342e046bc5c798022cbe694026 (patch) | |
tree | 68bafc0aecb3ea98f229800f42d58144b365fe1b /intern/cycles/render/hair.h | |
parent | 3eb6569b38d7c84ac084117221e475f5a328bf0d (diff) |
Cleanup: use NODE_SOCKET_API_ARRAY for array sockets
This prevents copying the arrays when setting new values in the sockets.
No functional changes.
Diffstat (limited to 'intern/cycles/render/hair.h')
-rw-r--r-- | intern/cycles/render/hair.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/render/hair.h b/intern/cycles/render/hair.h index 1a8f422e8c4..e4451d70767 100644 --- a/intern/cycles/render/hair.h +++ b/intern/cycles/render/hair.h @@ -89,10 +89,10 @@ class Hair : public Geometry { float4 r_keys[4]) const; }; - NODE_SOCKET_API(array<float3>, curve_keys) - NODE_SOCKET_API(array<float>, curve_radius) - NODE_SOCKET_API(array<int>, curve_first_key) - NODE_SOCKET_API(array<int>, curve_shader) + NODE_SOCKET_API_ARRAY(array<float3>, curve_keys) + NODE_SOCKET_API_ARRAY(array<float>, curve_radius) + NODE_SOCKET_API_ARRAY(array<int>, curve_first_key) + NODE_SOCKET_API_ARRAY(array<int>, curve_shader) /* BVH */ size_t curvekey_offset; |