Fix new GCC 9 warnings: -Wdeprecated-copy.

(cherry picked from commit 6be77da7eb)
This commit is contained in:
marxin
2019-03-02 13:32:29 +01:00
committed by Hein-Pieter van Braam-Stewart
parent 4be1343f3c
commit c33a924c28
7 changed files with 43 additions and 0 deletions

View File

@ -104,6 +104,14 @@ SoftBody::PinnedPoint::PinnedPoint(const PinnedPoint &obj_tocopy) {
offset = obj_tocopy.offset;
}
SoftBody::PinnedPoint SoftBody::PinnedPoint::operator=(const PinnedPoint &obj) {
point_index = obj.point_index;
spatial_attachment_path = obj.spatial_attachment_path;
spatial_attachment = obj.spatial_attachment;
offset = obj.offset;
return *this;
}
void SoftBody::_update_pickable() {
if (!is_inside_tree())
return;

View File

@ -75,6 +75,7 @@ public:
PinnedPoint();
PinnedPoint(const PinnedPoint &obj_tocopy);
PinnedPoint operator=(const PinnedPoint &obj);
};
private: