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:
authorAntony Riakiotakis <kalast@gmail.com>2014-11-19 14:32:21 +0300
committerAntony Riakiotakis <kalast@gmail.com>2014-11-19 14:32:21 +0300
commit36f18cd35c40eb5f6e6fc03c4f53dd02ee179b5c (patch)
tree047ee8ae5e8a667733d4a499c550ecfc8016a80d /source/blender/windowmanager/WM_api.h
parentd7fa0fcaae139f0e24e9682d3ae4be0f242250ac (diff)
Arrow widget interaction:
Fix interaction when pivot is beside the camera. basically we now do all calculations in 3D space and we do not scale correct the offset in 3D - this creates a nasty dependency loop between drawing and calculation for widgets bound to properties - ie offset depends on scale but scale depends on screen position - ie offset. Also added an extra callback to get the final position of the widget in 3d space and use that to calculate the scale. This takes care of bringing a close to the camera widget to the background and the widget keeping its initial size. The final position can be different from the initial position, especially when the widget is offset from the original position.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index 06f491a8b0f..ffc7850012b 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -518,8 +518,6 @@ enum {
UI_ARROW_STYLE_INVERTED = (1 << 2),
/* clamp arrow interaction to property width */
UI_ARROW_STYLE_CONSTRAINED = (1 << 3),
- /* force offset to be in 3D space, even if widget system is not 3D */
- UI_ARROW_STYLE_OFFSET_3D = (1 << 4),
};
enum {