Page MenuHome
Paste P2853

(An Untitled Masterwork)
ActivePublic

Authored by Jacques Lucke (JacquesLucke) on Mar 25 2022, 11:07 AM.
diff --git a/source/blender/makesdna/DNA_defs.h b/source/blender/makesdna/DNA_defs.h
index 283eacf1a16..f9b8a2fc7ff 100644
--- a/source/blender/makesdna/DNA_defs.h
+++ b/source/blender/makesdna/DNA_defs.h
@@ -96,7 +96,7 @@ template<class T> class ShallowDataConstRef {
class_name &operator=(const class_name &other) = delete; \
class_name &operator=(class_name &&other) = delete; \
/* Support for shallow copy. */ \
- class_name(const blender::dna::internal::ShallowDataConstRef<class_name> ref) \
+ class_name(const blender::dna::internal::ShallowDataConstRef<class_name> ref) : class_name() \
{ \
_DNA_internal_memcpy(this, ref.get_pointer(), sizeof(class_name)); \
} \

Event Timeline