[Bf-blender-cvs] [f1e5fd030a9] master: Cleanup: unsupported ATTR_FALLTHROUGH use, clang-format
Campbell Barton
noreply at git.blender.org
Fri Jun 19 01:45:42 CEST 2020
Commit: f1e5fd030a912be1bbcedd2b7e68fc00cf2a8c04
Author: Campbell Barton
Date: Fri Jun 19 09:44:57 2020 +1000
Branches: master
https://developer.blender.org/rBf1e5fd030a912be1bbcedd2b7e68fc00cf2a8c04
Cleanup: unsupported ATTR_FALLTHROUGH use, clang-format
===================================================================
M source/blender/editors/transform/transform_snap.c
M source/blender/makesrna/intern/rna_sequencer_api.c
===================================================================
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c
index 2a34cb4860b..3afdc5a21c0 100644
--- a/source/blender/editors/transform/transform_snap.c
+++ b/source/blender/editors/transform/transform_snap.c
@@ -21,7 +21,6 @@
* \ingroup edtransform
*/
-/* clang-format off */
#include <float.h>
#include "PIL_time.h"
@@ -691,15 +690,13 @@ static void setSnappingCallback(TransInfo *t)
t->tsnap.targetSnap = TargetSnapClosest;
break;
case SCE_SNAP_TARGET_CENTER:
- if (ELEM(t->mode, TFM_ROTATION, TFM_RESIZE)) {
- /* Can't do TARGET_CENTER with these modes,
- * use TARGET_MEDIAN instead. */
- ATTR_FALLTHROUGH;
- }
- else {
+ if (!ELEM(t->mode, TFM_ROTATION, TFM_RESIZE)) {
t->tsnap.targetSnap = TargetSnapCenter;
break;
}
+ /* Can't do TARGET_CENTER with these modes,
+ * use TARGET_MEDIAN instead. */
+ ATTR_FALLTHROUGH;
case SCE_SNAP_TARGET_MEDIAN:
t->tsnap.targetSnap = TargetSnapMedian;
break;
diff --git a/source/blender/makesrna/intern/rna_sequencer_api.c b/source/blender/makesrna/intern/rna_sequencer_api.c
index e04dcd34663..29a8f281d22 100644
--- a/source/blender/makesrna/intern/rna_sequencer_api.c
+++ b/source/blender/makesrna/intern/rna_sequencer_api.c
@@ -504,7 +504,8 @@ void RNA_api_sequence_strip(StructRNA *srna)
func = RNA_def_function(srna, "invalidate_cache", "rna_Sequence_invalidate_cache_rnafunc");
RNA_def_function_flag(func, FUNC_USE_SELF_ID);
- RNA_def_function_ui_description(func, "Invalidate Cached images for strip and all dependant strips. ");
+ RNA_def_function_ui_description(func,
+ "Invalidate Cached images for strip and all dependant strips. ");
parm = RNA_def_enum(func, "type", seq_cahce_type_items, 0, "Type", "Cache Type");
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED);
}
More information about the Bf-blender-cvs
mailing list