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:
authorClément Foucault <foucault.clem@gmail.com>2018-09-25 19:50:57 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-09-25 23:51:54 +0300
commit2cff9b4cb605047927fbb1c774fdafcfd2ab534e (patch)
tree101d1efb5507a9dbde2934b04f081e77ed1e131b /source/blender/editors/transform/transform_orientations.c
parent05d0e5315b99f939687838b50519d0702b4c8fb4 (diff)
Curves: Move draw options to overlays
This commit add one regression: it is impossible to currently hide handles in the viewport. But this should be fixed in another commit.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 2962c88c352..873eb1c79b5 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -835,7 +835,8 @@ int getTransformOrientation_ex(const bContext *C, float normal[3], float plane[3
}
}
else {
- const bool use_handle = (cu->drawflag & CU_HIDE_HANDLES) == 0;
+ View3D *v3d = CTX_wm_view3d(C);
+ const bool use_handle = (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_CU_HANDLES) != 0;
for (nu = nurbs->first; nu; nu = nu->next) {
/* only bezier has a normal */