Mixer: Fix OSC pathname generation when running without NSM.
This commit is contained in:
parent
55b020f3a0
commit
5ab7d7c410
|
@ -325,8 +325,7 @@ Module_Parameter_Editor::make_controls ( void )
|
||||||
|
|
||||||
controls_by_port[i] = w;
|
controls_by_port[i] = w;
|
||||||
|
|
||||||
w->tooltip( p->osc_path() );
|
w->copy_tooltip( p->osc_path() );
|
||||||
|
|
||||||
|
|
||||||
_callback_data.push_back( callback_data( this, i ) );
|
_callback_data.push_back( callback_data( this, i ) );
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ namespace OSC
|
||||||
Signal::rename ( const char *path )
|
Signal::rename ( const char *path )
|
||||||
{
|
{
|
||||||
char *new_path;
|
char *new_path;
|
||||||
asprintf( &new_path, "%s%s", _endpoint->name(), path );
|
asprintf( &new_path, "%s%s", _endpoint->name() ? _endpoint->name() : "", path );
|
||||||
|
|
||||||
DMESSAGE( "Renaming signal %s to %s", this->path(), new_path );
|
DMESSAGE( "Renaming signal %s to %s", this->path(), new_path );
|
||||||
|
|
||||||
|
@ -962,7 +962,7 @@ namespace OSC
|
||||||
Endpoint::add_signal ( const char *path, Signal::Direction dir, float min, float max, float default_value, signal_handler handler, void *user_data )
|
Endpoint::add_signal ( const char *path, Signal::Direction dir, float min, float max, float default_value, signal_handler handler, void *user_data )
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
asprintf( &s, "%s%s", name(), path );
|
asprintf( &s, "%s%s", name() ? name() : "", path );
|
||||||
|
|
||||||
Signal *o = new Signal( s, dir );
|
Signal *o = new Signal( s, dir );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue