Skip to content

Commit

Permalink
don't always push value for remote, output all values when registerin…
Browse files Browse the repository at this point in the history
…g view, only default for models
  • Loading branch information
avilleret committed Nov 24, 2020
1 parent a2d5940 commit 980a883
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/ossia-max/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,6 @@ void fire_values_by_priority(std::vector<node_priority>& priority_graph, bool on
{
if(only_default)
{
auto owner = np.obj->get_owner();
assert(owner != nullptr);

if(owner->m_otype == object_class::remote)
{
return false; // always output value for remote
}

auto val = param->get_default_value();
if(!val)
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/ossia-max/src/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void address_mess_cb(T* x, t_symbol* address)
|| x->m_otype == object_class::model)
{
register_children_in_patcher_recursively(x->m_patcher, x);
output_all_values(get_patcher(&x->m_object), true);
output_all_values(get_patcher(&x->m_object), x->m_otype == object_class::model);
}
}

Expand Down

0 comments on commit 980a883

Please sign in to comment.