Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-04-13 13:19:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-04-13 13:19:31 +0300
commit07fc6c922493bf0f6252da663e9854b8c9d95b8b (patch)
tree9823b72f6933d323028ba8157e90c7b6db009687 /source/blender/editors/space_graph/space_graph.c
parent199715eabccce8d91cd4f9705762305e8f236b8c (diff)
parent332846b188d6c7463758fb8d8659785beccde63a (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/space_graph/space_graph.c')
-rw-r--r--source/blender/editors/space_graph/space_graph.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c
index 104fff986cf..a424084f6b1 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -699,12 +699,14 @@ static void graph_refresh(const bContext *C, ScrArea *sa)
static void graph_id_remap(ScrArea *UNUSED(sa), SpaceLink *slink, ID *old_id, ID *new_id)
{
SpaceIpo *sgraph = (SpaceIpo *)slink;
-
- if (sgraph->ads && (ID *)sgraph->ads->filter_grp == old_id) {
- sgraph->ads->filter_grp = (Group *)new_id;
- }
- if (sgraph->ads && (ID *)sgraph->ads->source == old_id) {
- sgraph->ads->source = new_id;
+
+ if (sgraph->ads) {
+ if ((ID *)sgraph->ads->filter_grp == old_id) {
+ sgraph->ads->filter_grp = (Group *)new_id;
+ }
+ if ((ID *)sgraph->ads->source == old_id) {
+ sgraph->ads->source = new_id;
+ }
}
}