Fix EN_setlinkvalue for EN_INITSETTING

This commit is contained in:
Lew Rossman
2025-07-21 13:22:26 -04:00
parent addd2c3661
commit c8d92cdd48

View File

@@ -4177,6 +4177,11 @@ int DLLEXPORT EN_setlinkvalue(EN_Project p, int index, int property, double valu
{ {
Link[index].Kc = value; Link[index].Kc = value;
Link[index].InitSetting = value; Link[index].InitSetting = value;
valveType = Link[index].Type;
if (valveType > PUMP && valveType != GPV)
{
Link[index].InitStatus = ACTIVE;
}
} }
else else
{ {