diff options
author | Ray Molenkamp <github@lazydodo.com> | 2021-10-31 20:52:24 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2021-10-31 20:52:24 +0300 |
commit | c312c7196944b095fbd1b74c085a3af1e64409ce (patch) | |
tree | 28e19deda8158efce5ab4f614c2d6bc2bb0302fa /source/blender/editors/space_graph/graph_slider_ops.c | |
parent | b2e9f35c5eb21f63f5c20e06e910ef03965556ce (diff) |
Fix: Build error on all platforms
Types were used before being declared.
Diffstat (limited to 'source/blender/editors/space_graph/graph_slider_ops.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_slider_ops.c | 60 |
1 files changed, 30 insertions, 30 deletions
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) { |