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:
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r--source/blender/editors/transform/transform_manipulator.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c
index 70c5e058d31..757c99594cc 100644
--- a/source/blender/editors/transform/transform_manipulator.c
+++ b/source/blender/editors/transform/transform_manipulator.c
@@ -442,7 +442,7 @@ int calc_manipulator_stats(const bContext *C)
}
else if (obedit->type == OB_MBALL) {
MetaBall *mb = (MetaBall *)obedit->data;
- MetaElem *ml /* , *ml_sel=NULL */ /* UNUSED */;
+ MetaElem *ml /* , *ml_sel = NULL */ /* UNUSED */;
ml = mb->editelems->first;
while (ml) {
@@ -499,7 +499,7 @@ int calc_manipulator_stats(const bContext *C)
}
}
else if (ob && (ob->mode & OB_MODE_ALL_PAINT)) {
- ;
+ /* pass */
}
else if (ob && ob->mode & OB_MODE_PARTICLE_EDIT) {
PTCacheEdit *edit = PE_get_current(scene, ob);
@@ -745,7 +745,7 @@ static char axisBlendAngle(float angle)
return (char)(255.0f * (angle - 5) / 15.0f);
}
-/* three colors can be set;
+/* three colors can be set:
* gray for ghosting
* moving: in transform theme color
* else the red/green/blue
@@ -782,22 +782,16 @@ static void set_manipulator_color(View3D *v3d, char axis, int colcode, unsigned
}
break;
case 'X':
- col[0] = 220;
- col[1] = 0;
- col[2] = 0;
- col[3] = alpha;
+ UI_GetThemeColor3ubv(TH_AXIS_X, col);
+ col[3] = alpha;
break;
case 'Y':
- col[0] = 0;
- col[1] = 220;
- col[2] = 0;
- col[3] = alpha;
+ UI_GetThemeColor3ubv(TH_AXIS_Y, col);
+ col[3] = alpha;
break;
case 'Z':
- col[0] = 30;
- col[1] = 30;
- col[2] = 220;
- col[3] = alpha;
+ UI_GetThemeColor3ubv(TH_AXIS_Z, col);
+ col[3] = alpha;
break;
default:
BLI_assert(!"invalid axis arg");