diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-21 09:42:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-21 10:01:14 +0300 |
commit | f189ad1f4b3602e1764994c78c4d906dc12dcc8f (patch) | |
tree | d3dc0273f55ec7b520a8d40460384df1c5ed1f36 /source/blender/windowmanager/gizmo/intern | |
parent | 4f06c7c8389d144394efdda8829f3d01283694d6 (diff) |
Cleanup: rename gizmo access functions
Add float in API names since we may want access to other types.
Diffstat (limited to 'source/blender/windowmanager/gizmo/intern')
-rw-r--r-- | source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c index 601c54b8be5..536dc5329bb 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_target_props.c @@ -189,7 +189,7 @@ bool WM_gizmo_target_property_is_valid(const wmGizmoProperty *gz_prop) (gz_prop->custom_func.value_get_fn && gz_prop->custom_func.value_set_fn)); } -float WM_gizmo_target_property_value_get( +float WM_gizmo_target_property_float_get( const wmGizmo *gz, wmGizmoProperty *gz_prop) { if (gz_prop->custom_func.value_get_fn) { @@ -207,7 +207,7 @@ float WM_gizmo_target_property_value_get( } } -void WM_gizmo_target_property_value_set( +void WM_gizmo_target_property_float_set( bContext *C, const wmGizmo *gz, wmGizmoProperty *gz_prop, const float value) { @@ -227,7 +227,7 @@ void WM_gizmo_target_property_value_set( RNA_property_update(C, &gz_prop->ptr, gz_prop->prop); } -void WM_gizmo_target_property_value_get_array( +void WM_gizmo_target_property_float_get_array( const wmGizmo *gz, wmGizmoProperty *gz_prop, float *value) { @@ -238,7 +238,7 @@ void WM_gizmo_target_property_value_get_array( RNA_property_float_get_array(&gz_prop->ptr, gz_prop->prop, value); } -void WM_gizmo_target_property_value_set_array( +void WM_gizmo_target_property_float_set_array( bContext *C, const wmGizmo *gz, wmGizmoProperty *gz_prop, const float *value) { |