| 595 | } |
| 596 | |
| 597 | void float3_array_hash(const Node *node, const SocketType &socket, MD5Hash &md5) |
| 598 | { |
| 599 | /* Don't compare 4th element used for padding. */ |
| 600 | const array<float3> &a = *(const array<float3> *)(((char *)node) + socket.struct_offset); |
| 601 | for (size_t i = 0; i < a.size(); i++) { |
| 602 | md5.append((uint8_t *)&a[i], sizeof(float) * 3); |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | } // namespace |
| 607 |