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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-25 18:11:06 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-26 10:41:19 +0300
commit848f0c5b5b3ca4d747e00a66182c3d0edd8cc99b (patch)
treef91aae611773332639f8ff290597312c17382b38 /intern/cycles/util
parent22afe88882e88b15df06a2b5ce3c596d31dd6365 (diff)
Code cleanup: simpler and faster detection of BVH refit.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_vector.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_vector.h b/intern/cycles/util/util_vector.h
index 67bf82b47a5..625c19c7c46 100644
--- a/intern/cycles/util/util_vector.h
+++ b/intern/cycles/util/util_vector.h
@@ -162,6 +162,11 @@ public:
return memcmp(data_, other.data_, datasize_*sizeof(T)) == 0;
}
+ bool operator!=(const array<T>& other) const
+ {
+ return !(*this == other);
+ }
+
void steal_data(array& from)
{
if(this != &from) {