Skip to content

Commit

Permalink
always push default value on object registration
Browse files Browse the repository at this point in the history
fix #377
  • Loading branch information
avilleret committed Apr 26, 2019
1 parent 7549edf commit a5c3c05
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion OSSIA/ossia-max/src/object_base.cpp
Expand Up @@ -307,7 +307,6 @@ void t_matcher::set_parent_addr()

object_base::object_base()
{

}

object_base::~object_base()
Expand Down
2 changes: 1 addition & 1 deletion OSSIA/ossia-max/src/object_base.hpp
Expand Up @@ -117,7 +117,7 @@ struct object_base
object_class m_otype{};

void* m_clock{};
void* m_reg_clock{}; // registration clock that should be init in constructor
void* m_reg_clock{}; // registration clock that should be initialized in constructor
// and canceled by loadbang method

float m_rate{10};
Expand Down
11 changes: 1 addition & 10 deletions OSSIA/ossia-max/src/parameter.cpp
Expand Up @@ -233,16 +233,7 @@ bool parameter::do_registration(const std::vector<std::shared_ptr<t_matcher>>& m
set_repetition_filter();
set_recall_safe();

auto& map = ossia_max::instance().root_patcher;
auto it = map.find(m_patcher_hierarchy.back());

if (it != map.end())
{
if(it->second.is_loadbanged)
{
clock_delay(m_clock, 1);
}
}
clock_delay(m_clock, 1);

return (!m_matchers.empty() || m_is_pattern);
}
Expand Down

0 comments on commit a5c3c05

Please sign in to comment.