Skip to content

Commit cdeef10

Browse files
committed
Fix click on subpatch not working in DAW
1 parent 486a606 commit cdeef10

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Source/Pd/Setup.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,15 +1356,6 @@ int Setup::initialisePd()
13561356
plugdata_print_class = class_new(gensym("plugdata_print"), static_cast<t_newmethod>(nullptr), static_cast<t_method>(nullptr),
13571357
sizeof(t_plugdata_print), CLASS_DEFAULT, A_NULL, 0);
13581358

1359-
t_atom zz[ndefaultfont + 2];
1360-
SETSYMBOL(zz, gensym("."));
1361-
SETFLOAT(zz + 1, 0);
1362-
1363-
for (int i = 0; i < ndefaultfont; i++) {
1364-
SETFLOAT(zz + i + 2, defaultfontshit[i]);
1365-
}
1366-
pd_typedmess(gensym("pd")->s_thing, gensym("init"), 2 + ndefaultfont, zz);
1367-
13681359
socket_init();
13691360

13701361
sys_getrealtime(); // Init realtime
@@ -1410,6 +1401,15 @@ void Setup::initialisePdInstance()
14101401
{
14111402
pdlua_instance_setup();
14121403
fftw_instance_setup();
1404+
1405+
t_atom zz[ndefaultfont + 2];
1406+
SETSYMBOL(zz, gensym("."));
1407+
SETFLOAT(zz + 1, 0);
1408+
1409+
for (int i = 0; i < ndefaultfont; i++) {
1410+
SETFLOAT(zz + i + 2, defaultfontshit[i]);
1411+
}
1412+
pd_typedmess(gensym("pd")->s_thing, gensym("init"), 2 + ndefaultfont, zz);
14131413
}
14141414

14151415
void* Setup::createPrintHook(void* ptr, t_plugdata_printhook const hook_print)

0 commit comments

Comments
 (0)