Explorar o código

Restore assign() for vector classes

rdb %!s(int64=9) %!d(string=hai) anos
pai
achega
245d1241c9

+ 5 - 1
panda/src/linmath/lvecBase2_src.h

@@ -33,9 +33,13 @@ PUBLISHED:
   INLINE_LINMATH FLOATNAME(LVecBase2)() DEFAULT_CTOR;
   INLINE_LINMATH FLOATNAME(LVecBase2)(FLOATTYPE fill_value);
   INLINE_LINMATH FLOATNAME(LVecBase2)(FLOATTYPE x, FLOATTYPE y);
-
   ALLOC_DELETED_CHAIN(FLOATNAME(LVecBase2));
 
+#ifdef CPPPARSER
+  FLOATNAME(LVecBase2) &operator = (const FLOATNAME(LVecBase2) &copy) = default;
+  FLOATNAME(LVecBase2) &operator = (FLOATTYPE fill_value) = default;
+#endif
+
   INLINE_LINMATH static const FLOATNAME(LVecBase2) &zero();
   INLINE_LINMATH static const FLOATNAME(LVecBase2) &unit_x();
   INLINE_LINMATH static const FLOATNAME(LVecBase2) &unit_y();

+ 5 - 0
panda/src/linmath/lvecBase3_src.h

@@ -36,6 +36,11 @@ PUBLISHED:
   INLINE_LINMATH FLOATNAME(LVecBase3)(const FLOATNAME(LVecBase2) &copy, FLOATTYPE z);
   ALLOC_DELETED_CHAIN(FLOATNAME(LVecBase3));
 
+#ifdef CPPPARSER
+  FLOATNAME(LVecBase3) &operator = (const FLOATNAME(LVecBase3) &copy) = default;
+  FLOATNAME(LVecBase3) &operator = (FLOATTYPE fill_value) = default;
+#endif
+
   INLINE_LINMATH static const FLOATNAME(LVecBase3) &zero();
   INLINE_LINMATH static const FLOATNAME(LVecBase3) &unit_x();
   INLINE_LINMATH static const FLOATNAME(LVecBase3) &unit_y();

+ 5 - 0
panda/src/linmath/lvecBase4_src.h

@@ -45,6 +45,11 @@ PUBLISHED:
   INLINE_LINMATH FLOATNAME(LVecBase4)(const FLOATNAME(LVector3) &vector);
   ALLOC_DELETED_CHAIN(FLOATNAME(LVecBase4));
 
+#ifdef CPPPARSER
+  FLOATNAME(LVecBase4) &operator = (const FLOATNAME(LVecBase4) &copy) = default;
+  FLOATNAME(LVecBase4) &operator = (FLOATTYPE fill_value) = default;
+#endif
+
   INLINE_LINMATH static const FLOATNAME(LVecBase4) &zero();
   INLINE_LINMATH static const FLOATNAME(LVecBase4) &unit_x();
   INLINE_LINMATH static const FLOATNAME(LVecBase4) &unit_y();