From 62ec88eb846a8c342e046bc5c798022cbe694026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Thu, 9 Sep 2021 16:39:45 +0200 Subject: Cleanup: use NODE_SOCKET_API_ARRAY for array sockets This prevents copying the arrays when setting new values in the sockets. No functional changes. --- intern/cycles/render/hair.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'intern/cycles/render/hair.h') 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, curve_keys) - NODE_SOCKET_API(array, curve_radius) - NODE_SOCKET_API(array, curve_first_key) - NODE_SOCKET_API(array, curve_shader) + NODE_SOCKET_API_ARRAY(array, curve_keys) + NODE_SOCKET_API_ARRAY(array, curve_radius) + NODE_SOCKET_API_ARRAY(array, curve_first_key) + NODE_SOCKET_API_ARRAY(array, curve_shader) /* BVH */ size_t curvekey_offset; -- cgit v1.2.3