mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-02 05:34:32 +00:00
Hide ESM4 markers
This commit is contained in:
parent
ff774d6406
commit
693e3f0081
1 changed files with 6 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ namespace MWClass
|
||||||
void insertObjectRendering(const MWWorld::Ptr& ptr, const std::string& model,
|
void insertObjectRendering(const MWWorld::Ptr& ptr, const std::string& model,
|
||||||
MWRender::RenderingInterface& renderingInterface) const override
|
MWRender::RenderingInterface& renderingInterface) const override
|
||||||
{
|
{
|
||||||
|
const MWWorld::LiveCellRef<Record>* ref = ptr.get<Record>();
|
||||||
|
if (ref->mBase->mFlags & ESM4::Rec_Marker)
|
||||||
|
return;
|
||||||
ESM4StaticImpl::insertObjectRendering(ptr, model, renderingInterface);
|
ESM4StaticImpl::insertObjectRendering(ptr, model, renderingInterface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -75,6 +78,9 @@ namespace MWClass
|
||||||
void insertObjectPhysics(const MWWorld::Ptr& ptr, const std::string& model, const osg::Quat& rotation,
|
void insertObjectPhysics(const MWWorld::Ptr& ptr, const std::string& model, const osg::Quat& rotation,
|
||||||
MWPhysics::PhysicsSystem& physics) const override
|
MWPhysics::PhysicsSystem& physics) const override
|
||||||
{
|
{
|
||||||
|
const MWWorld::LiveCellRef<Record>* ref = ptr.get<Record>();
|
||||||
|
if (ref->mBase->mFlags & ESM4::Rec_Marker)
|
||||||
|
return;
|
||||||
ESM4StaticImpl::insertObjectPhysics(ptr, model, rotation, physics);
|
ESM4StaticImpl::insertObjectPhysics(ptr, model, rotation, physics);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue