Changed: Added new variable DumpVisualSlotsIndex to choose if we need to dump all visual slots index in vs_index.txt
This commit is contained in:
parent
f01996430e
commit
cc7793ff97
4 changed files with 9 additions and 2 deletions
|
@ -8,3 +8,4 @@ WorldSheet = "ryzom.world";
|
||||||
PrimitivesPath = "../../common/data_leveldesign/primitives";
|
PrimitivesPath = "../../common/data_leveldesign/primitives";
|
||||||
OutputDataPath = "../../client/data";
|
OutputDataPath = "../../client/data";
|
||||||
LigoPrimitiveClass = "world_editor_classes.xml";
|
LigoPrimitiveClass = "world_editor_classes.xml";
|
||||||
|
DumpVisualSlotsIndex = 1;
|
||||||
|
|
|
@ -147,6 +147,7 @@ const std::string ConfigFileName = "sheets_packer.cfg";
|
||||||
//---------------------------------------------------
|
//---------------------------------------------------
|
||||||
CClientConfig::CClientConfig()
|
CClientConfig::CClientConfig()
|
||||||
{
|
{
|
||||||
|
DumpVisualSlotsIndex = false;
|
||||||
}// CClientConfig //
|
}// CClientConfig //
|
||||||
|
|
||||||
|
|
||||||
|
@ -180,6 +181,8 @@ void setValues()
|
||||||
READ_STRING(OutputDataPath)
|
READ_STRING(OutputDataPath)
|
||||||
// Ligo primitive class
|
// Ligo primitive class
|
||||||
READ_STRING(LigoPrimitiveClass)
|
READ_STRING(LigoPrimitiveClass)
|
||||||
|
//Dump VisualSlots index
|
||||||
|
READ_BOOL(DumpVisualSlotsIndex)
|
||||||
|
|
||||||
/////////////
|
/////////////
|
||||||
// FILTERS //
|
// FILTERS //
|
||||||
|
|
|
@ -51,8 +51,11 @@ struct CClientConfig
|
||||||
/// Path where to create lmconts.packed
|
/// Path where to create lmconts.packed
|
||||||
std::string OutputDataPath;
|
std::string OutputDataPath;
|
||||||
|
|
||||||
|
// File containing LIGO primitives
|
||||||
|
std::string LigoPrimitiveClass;
|
||||||
|
|
||||||
std::string LigoPrimitiveClass;
|
// Whether dump visual slots index or not
|
||||||
|
bool DumpVisualSlotsIndex;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// Constructor.
|
/// Constructor.
|
||||||
|
|
|
@ -93,7 +93,7 @@ bool init()
|
||||||
nlinfo("Loading sheets...");
|
nlinfo("Loading sheets...");
|
||||||
IProgressCallback callback;
|
IProgressCallback callback;
|
||||||
SheetMngr.setOutputDataPath(AppCfg.OutputDataPath);
|
SheetMngr.setOutputDataPath(AppCfg.OutputDataPath);
|
||||||
SheetMngr.load (callback, true, true);
|
SheetMngr.load (callback, true, true, AppCfg.DumpVisualSlotsIndex);
|
||||||
|
|
||||||
// Make the lmconts.packed file
|
// Make the lmconts.packed file
|
||||||
if (!LigoConfig.readPrimitiveClass (AppCfg.LigoPrimitiveClass.c_str(), false))
|
if (!LigoConfig.readPrimitiveClass (AppCfg.LigoPrimitiveClass.c_str(), false))
|
||||||
|
|
Loading…
Reference in a new issue