From 2e71927622ec7e25c400f23b58fd8d14e056482d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 28 Aug 2017 11:19:58 +0200 Subject: Make GS macro return proper IDType type Previously it was returning short, which was really easy to (a) compare against non-ID type value (b) forget to handle some specific value in switch statement. Both issues happened in the nearest past, so it's time to tighten some nuts here. Most of the change related on silencing strict compiler warning now, but there is also one tricky aspect: ID_NLA is not in the IDType enum. So there is still cast to short to handle that switch. If someone has better ideas how to deal with this please go ahead :) --- source/blender/editors/animation/keyingsets.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/animation/keyingsets.c') diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index 4408ec26b3f..0a27fe14de7 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -1052,6 +1052,8 @@ int ANIM_apply_keyingset(bContext *C, ListBase *dsources, bAction *act, KeyingSe DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME); break; } + default: + break; } /* send notifiers for updates (this doesn't require context to work!) */ -- cgit v1.2.3