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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-03 05:01:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-03 05:01:04 +0300
commit085e5765df5a6e5664db4932ca2ade84be4dfc8e (patch)
tree6021d0e6b2fd4600eea35262817e9cb975339768 /source/blender/editors/gizmo_library/gizmo_library_intern.h
parent4978ef5ed5990df2d8aaf287379c0dec8d9fb251 (diff)
Cleanup: remove flag from GizmoCommonData
Use struct member instead, there are already many gizmo flags to keep track of.
Diffstat (limited to 'source/blender/editors/gizmo_library/gizmo_library_intern.h')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_library_intern.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_library_intern.h b/source/blender/editors/gizmo_library/gizmo_library_intern.h
index db88a52f087..f58935e1fba 100644
--- a/source/blender/editors/gizmo_library/gizmo_library_intern.h
+++ b/source/blender/editors/gizmo_library/gizmo_library_intern.h
@@ -37,8 +37,6 @@
* Data for common interactions. Used in gizmo_library_utils.c functions.
*/
typedef struct GizmoCommonData {
- int flag;
-
float range_fac; /* factor for arrow min/max distance */
float offset;
@@ -46,6 +44,8 @@ typedef struct GizmoCommonData {
float range;
/* min/max value for constrained gizmos */
float min, max;
+
+ uint is_custom_range_set : 1;
} GizmoCommonData;
typedef struct GizmoInteraction {
@@ -62,12 +62,6 @@ typedef struct GizmoInteraction {
float precision_offset;
} GizmoInteraction;
-/* GizmoCommonData->flag */
-enum {
- GIZMO_CUSTOM_RANGE_SET = (1 << 0),
-};
-
-
float gizmo_offset_from_value(
GizmoCommonData *data, const float value,
const bool constrained, const bool inverted);