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>2017-06-26 07:36:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-06-26 07:36:37 +0300
commitba6d9fefc2728d36c7a74a399d672ddf250a9528 (patch)
treecadf6809111c8e7cc017840f3aff0e796a524d73
parent3edff2e1a4d1f187c956fba2d5b2954981dc62a2 (diff)
Rename wmManipulatorPropertyType.type -> data_type
-rw-r--r--source/blender/windowmanager/manipulators/WM_manipulator_api.h2
-rw-r--r--source/blender/windowmanager/manipulators/WM_manipulator_types.h2
-rw-r--r--source/blender/windowmanager/manipulators/intern/wm_manipulator_target_props.c4
-rw-r--r--source/blender/windowmanager/manipulators/wm_manipulator_fn.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/windowmanager/manipulators/WM_manipulator_api.h b/source/blender/windowmanager/manipulators/WM_manipulator_api.h
index 50215e38847..d6774333ba4 100644
--- a/source/blender/windowmanager/manipulators/WM_manipulator_api.h
+++ b/source/blender/windowmanager/manipulators/WM_manipulator_api.h
@@ -182,7 +182,7 @@ void WM_manipulator_target_property_range_get(
const struct wmManipulatorPropertyType *WM_manipulatortype_target_property_find(
const struct wmManipulatorType *wt, const char *idname);
void WM_manipulatortype_target_property_def(
- struct wmManipulatorType *wt, const char *idname, int type, int array_length);
+ struct wmManipulatorType *wt, const char *idname, int data_type, int array_length);
/* -------------------------------------------------------------------- */
diff --git a/source/blender/windowmanager/manipulators/WM_manipulator_types.h b/source/blender/windowmanager/manipulators/WM_manipulator_types.h
index fd39626f38f..b1b6c5b1c0f 100644
--- a/source/blender/windowmanager/manipulators/WM_manipulator_types.h
+++ b/source/blender/windowmanager/manipulators/WM_manipulator_types.h
@@ -141,7 +141,7 @@ typedef struct wmManipulatorProperty {
typedef struct wmManipulatorPropertyType {
struct wmManipulatorPropertyType *next, *prev;
/* PropertyType, typically 'PROP_FLOAT' */
- int type;
+ int data_type;
int array_length;
/* index within 'wmManipulatorType' */
diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_target_props.c b/source/blender/windowmanager/manipulators/intern/wm_manipulator_target_props.c
index 9acd1a974cd..4a022c06613 100644
--- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_target_props.c
+++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_target_props.c
@@ -258,7 +258,7 @@ const wmManipulatorPropertyType *WM_manipulatortype_target_property_find(
}
void WM_manipulatortype_target_property_def(
- wmManipulatorType *wt, const char *idname, int type, int array_length)
+ wmManipulatorType *wt, const char *idname, int data_type, int array_length)
{
wmManipulatorPropertyType *mpt;
@@ -267,7 +267,7 @@ void WM_manipulatortype_target_property_def(
const uint idname_size = strlen(idname) + 1;
mpt = MEM_callocN(sizeof(wmManipulatorPropertyType) + idname_size, __func__);
memcpy(mpt->idname, idname, idname_size);
- mpt->type = type;
+ mpt->data_type = data_type;
mpt->array_length = array_length;
mpt->index_in_type = wt->target_property_defs_len;
wt->target_property_defs_len += 1;
diff --git a/source/blender/windowmanager/manipulators/wm_manipulator_fn.h b/source/blender/windowmanager/manipulators/wm_manipulator_fn.h
index e61aab20056..ae72e04e1c3 100644
--- a/source/blender/windowmanager/manipulators/wm_manipulator_fn.h
+++ b/source/blender/windowmanager/manipulators/wm_manipulator_fn.h
@@ -58,7 +58,7 @@ typedef void (*wmManipulatorFnExit)(struct bContext *, struct wmManipulator *
typedef int (*wmManipulatorFnCursorGet)(struct wmManipulator *);
typedef void (*wmManipulatorFnSelect)(struct bContext *, struct wmManipulator *, const int);
-/* wmManipulatorProperty */
+/* wmManipulatorProperty ('value' type defined by 'wmManipulatorProperty.data_type') */
typedef void (*wmManipulatorPropertyFnGet)(
const struct wmManipulator *, struct wmManipulatorProperty *,
/* typically 'float *' */