diff options
author | Ton Roosendaal <ton@blender.org> | 2009-07-08 19:01:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-07-08 19:01:28 +0400 |
commit | f3fd7d88002dcfe42e51738cbb7d2d2be756dd19 (patch) | |
tree | 01e52a6c7c1ef821b703cb7a8348dffb12dc43fb /source/blender/editors/transform/transform_orientations.c | |
parent | 031ed0431c37703b672d4589f85a4caa69810f37 (diff) |
2.5
Brought back the basics for transform manipulators. Martin will
hook it all up to new transform system.
Some notes:
- Still uses G.moving
- BIF_do_manipulator() is called as a View3D Operator
I've tested selecting handles, added a print to confirm
- BIF_GetTransInfo() returns a dummy struct now, just to get
it running.
- Marked some other issues with XXX
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index d3e4e2b1421..1e065de94e1 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -402,7 +402,7 @@ int BIF_countTransformOrientation(const bContext *C) { return count; } -void applyTransformOrientation(bContext *C, TransInfo *t) { +void applyTransformOrientation(const bContext *C, TransInfo *t) { TransformOrientation *ts; View3D *v3d = CTX_wm_view3d(C); int selected_index = (v3d->twmode - V3D_MANIP_CUSTOM); @@ -532,7 +532,7 @@ void initTransformOrientation(bContext *C, TransInfo *t) } } -int getTransformOrientation(bContext *C, float normal[3], float plane[3], int activeOnly) +int getTransformOrientation(const bContext *C, float normal[3], float plane[3], int activeOnly) { Scene *scene = CTX_data_scene(C); View3D *v3d = CTX_wm_view3d(C); |