|
|
|
@ -689,6 +689,14 @@ public:
|
|
|
|
|
*/
|
|
|
|
|
class NIFObjectLoader
|
|
|
|
|
{
|
|
|
|
|
static bool sShowMarkers;
|
|
|
|
|
public:
|
|
|
|
|
static void setShowMarkers(bool show)
|
|
|
|
|
{
|
|
|
|
|
sShowMarkers = show;
|
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
static void warn(const std::string &msg)
|
|
|
|
|
{
|
|
|
|
|
std::cerr << "NIFObjectLoader: Warn: " << msg << std::endl;
|
|
|
|
@ -1208,7 +1216,7 @@ class NIFObjectLoader
|
|
|
|
|
const Nif::NiStringExtraData *sd = static_cast<const Nif::NiStringExtraData*>(e.getPtr());
|
|
|
|
|
// String markers may contain important information
|
|
|
|
|
// affecting the entire subtree of this obj
|
|
|
|
|
if(sd->string == "MRK")
|
|
|
|
|
if(sd->string == "MRK" && !sShowMarkers)
|
|
|
|
|
{
|
|
|
|
|
// Marker objects. These meshes are only visible in the
|
|
|
|
|
// editor.
|
|
|
|
@ -1471,5 +1479,14 @@ void Loader::createKfControllers(Ogre::Entity *skelBase,
|
|
|
|
|
NIFObjectLoader::loadKf(skelBase->getSkeleton(), name, textKeys, ctrls);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool Loader::sShowMarkers = false;
|
|
|
|
|
bool NIFObjectLoader::sShowMarkers = false;
|
|
|
|
|
|
|
|
|
|
void Loader::setShowMarkers(bool show)
|
|
|
|
|
{
|
|
|
|
|
sShowMarkers = show;
|
|
|
|
|
NIFObjectLoader::setShowMarkers(show);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace NifOgre
|
|
|
|
|