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>2019-02-19 01:42:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-19 01:45:48 +0300
commit53b484d08106d5188e9323379bbe59f0ad702495 (patch)
treed6fcebafacc9c60aebb7bd07684e39ba82c92310 /source/blender/editors/armature/armature_select.c
parentfc10e89918cbd42a9d787801a896695c78ed7b34 (diff)
DNA: rename select_color -> select_id
The term color is misleading, it's an integer id that happens to be written to a color in some cases, then converted back to an integer.
Diffstat (limited to 'source/blender/editors/armature/armature_select.c')
-rw-r--r--source/blender/editors/armature/armature_select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c
index 4e49d4b2877..8d58ee28f5c 100644
--- a/source/blender/editors/armature/armature_select.c
+++ b/source/blender/editors/armature/armature_select.c
@@ -68,7 +68,7 @@ Base *ED_armature_base_and_ebone_from_select_buffer(
EditBone *ebone = NULL;
/* TODO(campbell): optimize, eg: sort & binary search. */
for (uint base_index = 0; base_index < bases_len; base_index++) {
- if (bases[base_index]->object->select_color == hit_object) {
+ if (bases[base_index]->object->select_id == hit_object) {
base = bases[base_index];
break;
}
@@ -90,7 +90,7 @@ Object *ED_armature_object_and_ebone_from_select_buffer(
EditBone *ebone = NULL;
/* TODO(campbell): optimize, eg: sort & binary search. */
for (uint ob_index = 0; ob_index < objects_len; ob_index++) {
- if (objects[ob_index]->select_color == hit_object) {
+ if (objects[ob_index]->select_id == hit_object) {
ob = objects[ob_index];
break;
}
@@ -112,7 +112,7 @@ Base *ED_armature_base_and_bone_from_select_buffer(
Bone *bone = NULL;
/* TODO(campbell): optimize, eg: sort & binary search. */
for (uint base_index = 0; base_index < bases_len; base_index++) {
- if (bases[base_index]->object->select_color == hit_object) {
+ if (bases[base_index]->object->select_id == hit_object) {
base = bases[base_index];
break;
}