mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 21:45:35 +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,
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -75,6 +78,9 @@ namespace MWClass
|
|||
void insertObjectPhysics(const MWWorld::Ptr& ptr, const std::string& model, const osg::Quat& rotation,
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue