mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Fixed category filtering logic for datablockField populateMenu
This commit is contained in:
parent
d952722811
commit
7ef4552196
1 changed files with 3 additions and 2 deletions
|
|
@ -121,8 +121,9 @@ void GuiInspectorDatablockField::_populateMenu( GuiPopUpMenuCtrlEx* menu )
|
|||
if (!datablock)
|
||||
continue;
|
||||
|
||||
if (datablock && (!mDesiredClass || datablock->getClassRep()->isClass(mDesiredClass)) &&
|
||||
(String::ToLower(datablock->mCategory) == categoryName || (datablock->mCategory == String::EmptyString && categoryName == String("No Category"))))
|
||||
String dbCategory = String(datablock->mCategory).isEmpty() ? String("no category") : String::ToLower(datablock->mCategory);
|
||||
|
||||
if (datablock && (!mDesiredClass || datablock->getClassRep()->isClass(mDesiredClass)) && (dbCategory == categoryName))
|
||||
{
|
||||
menu->addEntry(datablock->getName(), id++, datablock->isClientOnly() ? 1 : 0, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue