[Bf-blender-cvs] [c312c719694] master: Fix: Build error on all platforms
Ray Molenkamp
noreply at git.blender.org
Sun Oct 31 18:52:31 CET 2021
Commit: c312c7196944b095fbd1b74c085a3af1e64409ce
Author: Ray Molenkamp
Date: Sun Oct 31 11:52:24 2021 -0600
Branches: master
https://developer.blender.org/rBc312c7196944b095fbd1b74c085a3af1e64409ce
Fix: Build error on all platforms
Types were used before being declared.
===================================================================
M source/blender/editors/space_graph/graph_slider_ops.c
===================================================================
diff --git a/source/blender/editors/space_graph/graph_slider_ops.c b/source/blender/editors/space_graph/graph_slider_ops.c
index ab3c6a89730..22e03cfa46c 100644
--- a/source/blender/editors/space_graph/graph_slider_ops.c
+++ b/source/blender/editors/space_graph/graph_slider_ops.c
@@ -53,6 +53,36 @@
(ANIMFILTER_DATA_VISIBLE | ANIMFILTER_CURVE_VISIBLE | ANIMFILTER_FOREDIT | ANIMFILTER_SEL | \
ANIMFILTER_NODUPLIS)
+/* ------------------- */
+
+/* This data type is only used for modal operation. */
+typedef struct tDecimateGraphOp {
+ bAnimContext ac;
+ Scene *scene;
+ ScrArea *area;
+ ARegion *region;
+
+ /** A 0-1 value for determining how much we should decimate. */
+ PropertyRNA *percentage_prop;
+
+ /** The original bezt curve data (used for restoring fcurves). */
+ ListBase bezt_arr_list;
+
+ struct tSlider *slider;
+
+ NumInput num;
+} tDecimateGraphOp;
+
+typedef struct tBeztCopyData {
+ int tot_vert;
+ BezTriple *bezt;
+} tBeztCopyData;
+
+typedef enum tDecimModes {
+ DECIM_RATIO = 1,
+ DECIM_ERROR,
+} tDecimModes;
+
/* ******************** GRAPH SLIDER OPERATORS ************************* */
/* This file contains a collection of operators to modify keyframes in the graph editor. All
* operators are modal and use a slider that allows the user to define a percentage to modify the
@@ -124,36 +154,6 @@ static void decimate_graph_keys(bAnimContext *ac, float remove_ratio, float erro
ANIM_animdata_freelist(&anim_data);
}
-/* ------------------- */
-
-/* This data type is only used for modal operation. */
-typedef struct tDecimateGraphOp {
- bAnimContext ac;
- Scene *scene;
- ScrArea *area;
- ARegion *region;
-
- /** A 0-1 value for determining how much we should decimate. */
- PropertyRNA *percentage_prop;
-
- /** The original bezt curve data (used for restoring fcurves). */
- ListBase bezt_arr_list;
-
- struct tSlider *slider;
-
- NumInput num;
-} tDecimateGraphOp;
-
-typedef struct tBeztCopyData {
- int tot_vert;
- BezTriple *bezt;
-} tBeztCopyData;
-
-typedef enum tDecimModes {
- DECIM_RATIO = 1,
- DECIM_ERROR,
-} tDecimModes;
-
/* Overwrite the current bezts arrays with the original data. */
static void decimate_reset_bezts(tDecimateGraphOp *dgo)
{
More information about the Bf-blender-cvs
mailing list