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