OpenMW compilation error when using OSG doubles for BoundingSphere
I tried enabling doubles for BoundingSphere and BoundingBox in OSG but OpenMW throws errors, I don't know if there might be more but compilation stops here for me for now:
- /home/runner/work/omw_android/omw_android/buildscripts/build/arm64/openmw-prefix/src/openmw/components/sceneutil/riggeometry.cpp:300:13: error: no matching function for call to 'transformBoundingSphere'
- transformBoundingSphere(bone->mMatrixInSkeletonSpace * (*mGeomToSkelMatrix), bs);
- ^~~~~~~~~~~~~~~~~~~~~~~
- /home/runner/work/omw_android/omw_android/buildscripts/build/arm64/openmw-prefix/src/openmw/components/sceneutil/util.hpp:52:10: note: candidate function not viable: no known conversion from 'osg::BoundingSpheref' (aka 'BoundingSphereImpl<osg::Vec3f>') to 'osg::BoundingSphere &' (aka 'BoundingSphereImpl<osg::Vec3d> &') for 2nd argument
- void transformBoundingSphere (const osg::Matrixf& matrix, osg::BoundingSphere& bsphere);
- ^
- /home/runner/work/omw_android/omw_android/buildscripts/build/arm64/openmw-prefix/src/openmw/components/sceneutil/riggeometry.cpp:302:13: error: no matching function for call to 'transformBoundingSphere'
- transformBoundingSphere(bone->mMatrixInSkeletonSpace, bs);
- ^~~~~~~~~~~~~~~~~~~~~~~
- /home/runner/work/omw_android/omw_android/buildscripts/build/arm64/openmw-prefix/src/openmw/components/sceneutil/util.hpp:52:10: note: candidate function not viable: no known conversion from 'osg::BoundingSpheref' (aka 'BoundingSphereImpl<osg::Vec3f>') to 'osg::BoundingSphere &' (aka 'BoundingSphereImpl<osg::Vec3d> &') for 2nd argument
- void transformBoundingSphere (const osg::Matrixf& matrix, osg::BoundingSphere& bsphere);
- ^
- make[5]: *** [components/CMakeFiles/components.dir/build.make:537: components/CMakeFiles/components.dir/sceneutil/riggeometry.cpp.o] Error 1
The options were:
-DOSG_USE_FLOAT_BOUNDINGSPHERE=OFF
-DOSG_USE_FLOAT_BOUNDINGBOX=OFF