Fix T57139: Transform overlay shows even when disabled
authorCampbell Barton <ideasman42@gmail.com>
Wed, 19 Dec 2018 01:26:33 +0000 (12:26 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 19 Dec 2018 01:30:16 +0000 (12:30 +1100)
commitfd42fe661612455c2d2558481c6587c0b7d95366
tree529cb8fba092d866c9b89d460ac2c880f94ae1e8
parentbb4ed5ce39cb2c07bfd97deb46a30b5505bbbf76
Fix T57139: Transform overlay shows even when disabled

Transform bypasses the gizmo API for drawing overlays,
so custom checks are needed.

Also don't draw the gizmo in other windows when transforming.
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform_gizmo_3d.c