Qt Editor: Do not show properties of dead effects

qteditor
Sven Eberhardt 2016-07-13 22:14:28 -04:00
parent 59712bcea0
commit 5a9e608f55
1 changed files with 1 additions and 0 deletions

View File

@ -1699,6 +1699,7 @@ int32_t C4ConsoleQtPropListModel::UpdateValuePropList(C4PropList *target_proplis
{
for (C4Effect *fx = obj->pEffects; fx; fx = fx->pNext)
{
if (!fx->IsActive()) continue; // skip dead effects
QString name = fx->GetName();
C4PropList *effect_editorprops = fx->GetPropertyPropList(P_EditorProps);
if (effect_editorprops && AddPropertyGroup(effect_editorprops, num_groups, name, fx, obj, nullptr, nullptr))