fix(cpn): model print function lua script name (#6496)

Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
Neil Horne
2025-08-18 12:45:18 +10:00
committed by GitHub
co-authored by philmoz
parent f30e7f1e77
commit e6035bfee9
@@ -203,6 +203,9 @@ QString CustomFunctionData::paramToString(const ModelData * model) const
return QString("%1= %2%3").arg(val < 0 ? "-" : "+").arg(abs(val)).arg(unit); return QString("%1= %2%3").arg(val < 0 ? "-" : "+").arg(abs(val)).arg(unit);
} }
} }
else if (func == FuncPlayScript || func == FuncRGBLed) {
return paramarm;
}
return ""; return "";
} }
@@ -499,8 +502,7 @@ bool CustomFunctionData::isParamAvailable() const
FuncBindExternalModule, FuncBindExternalModule,
FuncRacingMode, FuncRacingMode,
FuncDisableTouch, FuncDisableTouch,
FuncDisableAudioAmp, FuncDisableAudioAmp
FuncRGBLed
}; };
return funcList.contains(func) ? false : true; return funcList.contains(func) ? false : true;