Fix new GCC 9 warnings: -Wdeprecated-copy.
(cherry picked from commit 6be77da7eb)
This commit is contained in:
committed by
Hein-Pieter van Braam-Stewart
parent
4be1343f3c
commit
c33a924c28
@ -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;
|
||||
|
||||
@ -75,6 +75,7 @@ public:
|
||||
|
||||
PinnedPoint();
|
||||
PinnedPoint(const PinnedPoint &obj_tocopy);
|
||||
PinnedPoint operator=(const PinnedPoint &obj);
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user