Commit a69b826c authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed stray scalar components that are not properly selected when duplicating an object

parent 3fd85e76
......@@ -4534,8 +4534,8 @@ static void canvas_duplicate(t_canvas *x)
g = g->g_next;
while (g) {
if (pd_class(&g->g_pd) == canvas_class && ((t_canvas *)g)->gl_isgraph) {
// hack: if any objects are GOPs re-select them, otherwise we may get stray nlets
// due to networked nature between the gui and the engine, so we select
// hack: if any objects are GOPs re-select them, otherwise we may get stray unselected
// objects due to networked nature between the gui and the engine, so we select
// it explicitly here once again to prevent that from being a problem
gobj_select(g, x, 1);
}
......
......@@ -363,6 +363,7 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
}
if (glist_isselected(owner, &x->sc_gobj))
{
scalar_select(z, owner, 1);
scalar_drawselectrect(x, owner, 0);
scalar_drawselectrect(x, owner, 1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment