mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-10 06:44:29 +00:00
Hide ESM4 markers
This commit is contained in:
parent
ff774d6406
commit
693e3f0081
@ -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…
x
Reference in New Issue
Block a user