Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/space_graph.c
| Show First 20 Lines • Show All 749 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void graph_id_remap(ScrArea *UNUSED(sa), SpaceLink *slink, ID *old_id, ID *new_id) | static void graph_id_remap(ScrArea *UNUSED(sa), SpaceLink *slink, ID *old_id, ID *new_id) | ||||
| { | { | ||||
| SpaceIpo *sgraph = (SpaceIpo *)slink; | SpaceIpo *sgraph = (SpaceIpo *)slink; | ||||
| if (sgraph->ads) { | if (sgraph->ads) { | ||||
| if ((ID *)sgraph->ads->filter_grp == old_id) { | if ((ID *)sgraph->ads->filter_grp == old_id) { | ||||
| sgraph->ads->filter_grp = (Group *)new_id; | sgraph->ads->filter_grp = (Collection *)new_id; | ||||
| } | } | ||||
| if ((ID *)sgraph->ads->source == old_id) { | if ((ID *)sgraph->ads->source == old_id) { | ||||
| sgraph->ads->source = new_id; | sgraph->ads->source = new_id; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* only called once, from space/spacetypes.c */ | /* only called once, from space/spacetypes.c */ | ||||
| ▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines | |||||