diff options
author | marxin <mliska@suse.cz> | 2019-03-02 13:32:29 +0100 |
---|---|---|
committer | marxin <mliska@suse.cz> | 2019-03-02 14:37:02 +0100 |
commit | 6be77da7eb817fc1f8469bd0bdd8a0d08167e701 (patch) | |
tree | b2336f6475e60652d110138ae36307aff6e9205e /scene | |
parent | a42549b8f703754a43bad2557357cb7046874118 (diff) |
Fix new GCC 9 warnings: -Wdeprecated-copy.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/soft_body.cpp | 8 | ||||
-rw-r--r-- | scene/3d/soft_body.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/scene/3d/soft_body.cpp b/scene/3d/soft_body.cpp index ac20609c21..d6a0595519 100644 --- a/scene/3d/soft_body.cpp +++ b/scene/3d/soft_body.cpp @@ -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; diff --git a/scene/3d/soft_body.h b/scene/3d/soft_body.h index 2516d39552..ee455f8dab 100644 --- a/scene/3d/soft_body.h +++ b/scene/3d/soft_body.h @@ -75,6 +75,7 @@ public: PinnedPoint(); PinnedPoint(const PinnedPoint &obj_tocopy); + PinnedPoint operator=(const PinnedPoint &obj); }; private: |