From b045938c8515cadc0c079158e27dc642de9d42e7 Mon Sep 17 00:00:00 2001 From: nkorslund Date: Tue, 12 Aug 2008 16:52:13 +0000 Subject: [PATCH] Sound generators and certain other editor-only meshes are no longer rendered. git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@39 ea6a568a-9f4f-0410-981a-c910a81bb256 --- ogre/meshloader.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ogre/meshloader.d b/ogre/meshloader.d index 1a42989913..18ec7b2f87 100644 --- a/ogre/meshloader.d +++ b/ogre/meshloader.d @@ -123,6 +123,11 @@ struct MeshLoader void handleNiNode(NiNode data, NodePtr node) { + // Ignore sound activators and similar objects. + NiStringExtraData d = cast(NiStringExtraData) data.extra; + if(d !is null && d.string == "MRK") + return; + // Handle any effects here // In the cases where meshes have skeletal animations, we must