Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-09-09 17:39:45 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-09-09 17:39:45 +0300
commit62ec88eb846a8c342e046bc5c798022cbe694026 (patch)
tree68bafc0aecb3ea98f229800f42d58144b365fe1b /intern/cycles/render/hair.h
parent3eb6569b38d7c84ac084117221e475f5a328bf0d (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.h8
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;