mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
Merge branch 'castray' into 'master'
Fix RayCastingResult warning See merge request OpenMW/openmw!331
This commit is contained in:
commit
da49901dbc
@ -265,7 +265,11 @@ namespace MWPhysics
|
||||
RayCastingResult PhysicsSystem::castRay(const osg::Vec3f &from, const osg::Vec3f &to, const MWWorld::ConstPtr& ignore, std::vector<MWWorld::Ptr> targets, int mask, int group) const
|
||||
{
|
||||
if (from == to)
|
||||
return RayCastingResult { false };
|
||||
{
|
||||
RayCastingResult result;
|
||||
result.mHit = false;
|
||||
return result;
|
||||
}
|
||||
btVector3 btFrom = Misc::Convert::toBullet(from);
|
||||
btVector3 btTo = Misc::Convert::toBullet(to);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user