Skip to content

Commit

Permalink
fix interface out channel bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Nov 13, 2024
1 parent 03f21a3 commit d32a918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Object/Component/ObjectComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ void ObjectComponent::rebuildInterfaceParams(Interface* interface)
int i = componentParams.getProperty("channel", 1);
for (auto& cp : computedParameters)
{
IntParameter* p = interfaceParamCC.addIntParameter(cp->niceName + " Channel", "Channel for this parameter", i, 1, 512, true);
IntParameter* p = interfaceParamCC.addIntParameter(cp->niceName + " Channel", "Channel for this parameter", 1, 1, 512, true);
p->setValue(i, false, true);
p->canBeDisabledByUser = true;
if (!checkDefaultInterfaceParamEnabled(computedParamMap[cp])) p->setEnabled(false);
else i += p->isComplex() ? p->value.size() : 1;
Expand Down

0 comments on commit d32a918

Please sign in to comment.