Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
a69b826c
Commit
a69b826c
authored
Aug 17, 2012
by
Ivica Bukvic
Browse files
fixed stray scalar components that are not properly selected when duplicating an object
parent
3fd85e76
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/g_editor.c
View file @
a69b826c
...
@@ -4534,8 +4534,8 @@ static void canvas_duplicate(t_canvas *x)
...
@@ -4534,8 +4534,8 @@ static void canvas_duplicate(t_canvas *x)
g
=
g
->
g_next
;
g
=
g
->
g_next
;
while
(
g
)
{
while
(
g
)
{
if
(
pd_class
(
&
g
->
g_pd
)
==
canvas_class
&&
((
t_canvas
*
)
g
)
->
gl_isgraph
)
{
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
// hack: if any objects are GOPs re-select them, otherwise we may get stray
unselected
// due to networked nature between the gui and the engine, so we select
//
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
// it explicitly here once again to prevent that from being a problem
gobj_select
(
g
,
x
,
1
);
gobj_select
(
g
,
x
,
1
);
}
}
...
...
src/g_scalar.c
View file @
a69b826c
...
@@ -363,6 +363,7 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
...
@@ -363,6 +363,7 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
}
}
if
(
glist_isselected
(
owner
,
&
x
->
sc_gobj
))
if
(
glist_isselected
(
owner
,
&
x
->
sc_gobj
))
{
{
scalar_select
(
z
,
owner
,
1
);
scalar_drawselectrect
(
x
,
owner
,
0
);
scalar_drawselectrect
(
x
,
owner
,
0
);
scalar_drawselectrect
(
x
,
owner
,
1
);
scalar_drawselectrect
(
x
,
owner
,
1
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment