Drop osg includes that nothing uses

The physics heightfield, recast mesh object, Bullet NIF loader and world scene headers included osg/ref_ptr, osg/Referenced or osg/Object without using any of them, which made non-render code look tied to OSG; scene.cpp, the one file that does use osg::ref_ptr, now includes it itself.
This commit is contained in:
Bret Curtis
2026-10-20 16:10:06 +02:00
parent 8a303273ee
commit b663583dd0
6 changed files with 2 additions and 9 deletions
-2
View File
@@ -3,8 +3,6 @@
#include <components/bullethelpers/heightfield.hpp>
#include <osg/Object>
#include <BulletCollision/CollisionDispatch/btCollisionObject.h>
#include <BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h>
-2
View File
@@ -1,8 +1,6 @@
#ifndef OPENMW_MWPHYSICS_HEIGHTFIELD_H
#define OPENMW_MWPHYSICS_HEIGHTFIELD_H
#include <osg/ref_ptr>
#include <LinearMath/btScalar.h>
#include <memory>
+2
View File
@@ -6,6 +6,8 @@
#include <BulletCollision/CollisionDispatch/btCollisionObject.h>
#include <osg/ref_ptr>
#include <components/debug/debuglog.hpp>
#include <components/detournavigator/agentbounds.hpp>
#include <components/detournavigator/debug.hpp>
-1
View File
@@ -3,7 +3,6 @@
#include <osg/Vec2i>
#include <osg/Vec4i>
#include <osg/ref_ptr>
#include "positioncellgrid.hpp"
#include "ptr.hpp"
@@ -9,8 +9,6 @@
#include <LinearMath/btTransform.h>
#include <osg/ref_ptr>
#include <functional>
#include <vector>
-2
View File
@@ -8,8 +8,6 @@
#include <string>
#include <osg/BoundingBox>
#include <osg/Referenced>
#include <osg/ref_ptr>
#include <BulletCollision/CollisionShapes/btCompoundShape.h>