mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +00:00
fixed resources table drag source problem
This commit is contained in:
parent
3e153d0a9b
commit
850a40d4e2
1 changed files with 8 additions and 6 deletions
|
@ -6,18 +6,20 @@
|
||||||
void CSMWorld::ResourcesManager::addResources (const Resources& resources)
|
void CSMWorld::ResourcesManager::addResources (const Resources& resources)
|
||||||
{
|
{
|
||||||
mResources.insert (std::make_pair (resources.getType(), resources));
|
mResources.insert (std::make_pair (resources.getType(), resources));
|
||||||
|
mResources.insert (std::make_pair (UniversalId::getParentType (resources.getType()),
|
||||||
|
resources));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSMWorld::ResourcesManager::listResources()
|
void CSMWorld::ResourcesManager::listResources()
|
||||||
{
|
{
|
||||||
static const char * const sMeshTypes[] = { "nif", 0 };
|
static const char * const sMeshTypes[] = { "nif", 0 };
|
||||||
|
|
||||||
addResources (Resources ("meshes", UniversalId::Type_Meshes, sMeshTypes));
|
addResources (Resources ("meshes", UniversalId::Type_Mesh, sMeshTypes));
|
||||||
addResources (Resources ("icons", UniversalId::Type_Icons));
|
addResources (Resources ("icons", UniversalId::Type_Icon));
|
||||||
addResources (Resources ("music", UniversalId::Type_Musics));
|
addResources (Resources ("music", UniversalId::Type_Music));
|
||||||
addResources (Resources ("sound", UniversalId::Type_SoundsRes));
|
addResources (Resources ("sound", UniversalId::Type_SoundRes));
|
||||||
addResources (Resources ("textures", UniversalId::Type_Textures));
|
addResources (Resources ("textures", UniversalId::Type_Texture));
|
||||||
addResources (Resources ("videos", UniversalId::Type_Videos));
|
addResources (Resources ("videos", UniversalId::Type_Video));
|
||||||
}
|
}
|
||||||
|
|
||||||
const CSMWorld::Resources& CSMWorld::ResourcesManager::get (UniversalId::Type type) const
|
const CSMWorld::Resources& CSMWorld::ResourcesManager::get (UniversalId::Type type) const
|
||||||
|
|
Loading…
Reference in a new issue