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:
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r--source/blender/editors/space_action/action_edit.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c
index e8ee993314c..fe29fed761d 100644
--- a/source/blender/editors/space_action/action_edit.c
+++ b/source/blender/editors/space_action/action_edit.c
@@ -201,7 +201,15 @@ static int action_pushdown_exec(bContext *C, wmOperator *op)
/* Perform the pushdown operation
* - This will deal with all the AnimData-side usercounts
*/
- BKE_nla_action_pushdown(adt);
+ if (action_has_motion(adt->action) == 0) {
+ /* action may not be suitable... */
+ BKE_report(op->reports, RPT_WARNING, "Action needs have at least a keyframe or some FModifiers");
+ return OPERATOR_CANCELLED;
+ }
+ else {
+ /* action can be safely added */
+ BKE_nla_action_pushdown(adt);
+ }
/* Stop displaying this action in this editor
* NOTE: The editor itself doesn't set a user...