diff options
-rw-r--r-- | intern/cycles/bvh/bvh_params.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_params.h b/intern/cycles/bvh/bvh_params.h index e073b69472e..43c2d9b2683 100644 --- a/intern/cycles/bvh/bvh_params.h +++ b/intern/cycles/bvh/bvh_params.h @@ -115,6 +115,11 @@ public: __forceinline int prim_object() const { return __float_as_int(rbounds.max.w); } __forceinline int prim_type() const { return type; } + BVHReference& operator=(const BVHReference &arg) { + memcpy(this, &arg, sizeof(BVHReference)); + return *this; + } + protected: BoundBox rbounds; uint type; |