mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 21:22:33 +00:00
Fixed Vector#== erroring out with doing Vector == SomeObject
This commit is contained in:
@@ -86,11 +86,13 @@ module CyberarmEngine
|
|||||||
@y == other &&
|
@y == other &&
|
||||||
@z == other &&
|
@z == other &&
|
||||||
@weight == other
|
@weight == other
|
||||||
else
|
elsif other.is_a?(Vector)
|
||||||
@x == other.x &&
|
@x == other.x &&
|
||||||
@y == other.y &&
|
@y == other.y &&
|
||||||
@z == other.z &&
|
@z == other.z &&
|
||||||
@weight == other.weight
|
@weight == other.weight
|
||||||
|
else
|
||||||
|
other == self
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user