Skip to content

Commit

Permalink
- add warning message when using changed() in the onInit callback
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Dec 21, 2023
1 parent b41b58f commit d47a97a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hi_scripting/scripting/api/ScriptingApiContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,8 +948,11 @@ void ScriptingApi::Content::ScriptComponent::sendValueListenerMessage()
void ScriptingApi::Content::ScriptComponent::changed()
{
if (!parent->asyncFunctionsAllowed())
{
debugToConsole(dynamic_cast<Processor*>(getScriptProcessor()), "Skipping changed() callback during onInit for " + getId());
return;

}

controlSender.sendControlCallbackMessage();
sendValueListenerMessage();

Expand Down

0 comments on commit d47a97a

Please sign in to comment.