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
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-01-29 23:47:15 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-01-29 23:49:46 +0300
commit7d91ef04880b57d92c97c365e41aebbb03686ce3 (patch)
treec021ff1548bee8c4d4266cb51e8301f2a362cb67 /source
parent93b63537e25095ca182e81a66372063abc56a124 (diff)
Partial fix for T60982: Editable anim settings in linked action.
This is only partially working, because some bAnimListElem items do not have any ID pointer set (for wome mysterious reason...), notably the 'group' ones. Will re-assign to @aligorith for that, this code is rather complicated and hard to follow (with all those macros ;) ).
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/animation/anim_channels_defines.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index c95da49831a..70850781ced 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -4420,6 +4420,12 @@ static void draw_setting_widget(bAnimContext *ac, bAnimListElem *ale, const bAni
}
}
}
+
+ if ((ale->fcurve_owner_id != NULL && ID_IS_LINKED(ale->fcurve_owner_id)) ||
+ (ale->id != NULL && ID_IS_LINKED(ale->id)))
+ {
+ UI_but_flag_enable(but, UI_BUT_DISABLED);
+ }
}
/* Draw UI widgets the given channel */