Skip to content

Commit

Permalink
Временный костыль для urho3d/urho3d#3147
Browse files Browse the repository at this point in the history
  • Loading branch information
1vanK committed Dec 24, 2022
1 parent b8b2ea8 commit 8579477
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Source/dviglo/math/vector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,17 @@ class URHO3D_API Vector3
}

/// Assign from another vector.
Vector3& operator =(const Vector3& rhs) noexcept = default;
//Vector3& operator =(const Vector3& rhs) noexcept = default;

// TODO: Вернуть закомментированный вариант. Это временный workaround для https://github.com/urho3d/urho3d/issues/3147
Vector3& operator =(const Vector3& rhs) noexcept
{
x_ = rhs.x_;
y_ = rhs.y_;
z_ = rhs.z_;

return *this;
}

/// Test for equality with another vector without epsilon.
bool operator ==(const Vector3& rhs) const { return x_ == rhs.x_ && y_ == rhs.y_ && z_ == rhs.z_; }
Expand Down

1 comment on commit 8579477

@1vanK
Copy link
Contributor Author

@1vanK 1vanK commented on 8579477 Mar 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Убрал в коммите 56e778d

Please sign in to comment.