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
AgeCommit message (Collapse)Author
2019-05-31WM: option to ignore cursor image/clip/view2d zoomCampbell Barton
In preparation for view navigation gizmos.
2019-05-31Fix T63981: Factory default memory cache limit is 4096 MBSergey Sharybin
The initialization of default settings and cache limit and audio.
2019-05-30WM: use different drag thresholds for mouse/tablet eventsCampbell Barton
Now a small threshold is used for mouse input, avoiding delay when gizmos are activated on drag. Tablet input threshold remains unchanged since it's easier to make small movements when using a tablet. A larger threshold for non-cursor input is now used (typically keyboard) which improves usability when the "Pie Menu on Drag" key-map preference.
2019-05-30Cleanup: move click/drag events to functionsCampbell Barton
Simplifies future changes to dragging checks and avoids each check for drag using slightly different logic.
2019-05-30Cleanup: rename callbacks to match the struct member nameCampbell Barton
2019-05-29UI: use matching distance checks & define for draggingCampbell Barton
2019-05-29Correct error in last commitCampbell Barton
2019-05-29Keymap: add drag-only generic gizmo keymapCampbell Barton
Allows gizmos clicks to fall through for gizmos which only drag, currently unused.
2019-05-29Cleanup: move gizmo keymap access into funcitonsCampbell Barton
Existing functions were written to match the setup_keymap callback. Add versions that can be called with the window manager for convenience.
2019-05-29Cleanup: correct private function namingCampbell Barton
Use term 'glyph' instead of 'icon' since we already have event icons.
2019-05-28Cleanup: use doxy comments for wmOperatoType.flagCampbell Barton
2019-05-28Cleanup: use WM_ prefix for cursor enumCampbell Barton
2019-05-28WM: support X/Y axis cursor wrappingCampbell Barton
Operator flags to wrap on a single axis. D4865 by @Gvgeo with updates. Resolves T64585
2019-05-28Cleanup: rename gizmo keymapsCampbell Barton
Don't use plural because single/multiple isn't relevant for keymap definitions and reads badly for specific gizmo types that only use a single gizmo.
2019-05-28Cleanup: remove unused modal gizmo keymapCampbell Barton
An operator can only have one modal keymap, there is no use in defining multiple.
2019-05-28Gizmo: only highlight when held modifier keys are usedCampbell Barton
Check the current events modifiers against the gizmo keymap, only highlighting when keymap items match. Needed to resolve T63996
2019-05-28Gizmo: changes to internal drag logicCampbell Barton
Minor changes to recent gizmo click/drag logic 08dff7b40bc6a Changing the gizmos highlighted part in the invoke_prepare callback is too error prone since it needs to run before it's known which operator will execute. Add back 'drag_part', since it simplifies click-drag use. While this isn't essential with custom keymaps per gizmo it avoids having to define a keymap in the case a drag event needs a different action.
2019-05-27Gizmo: add per gizmo keymapsCampbell Barton
Remove click-drag support for tweak gizmo, rely on keymap events instead. This is needed for some gizmos to use modifiers keys without having all gizmos use all modifier keys (see: T63996).
2019-05-27Fix tweak/drag event use with gizmosCampbell Barton
It was possible to use a drag event for a gizmo that dragged away from the gizmo, changing the active gizmo. Now use gizmo located at the location that was clicked on.
2019-05-27Gizmo: add event argument to invoke_prepare callbackCampbell Barton
2019-05-25Fix T65092: error with gizmos using freed keymapsCampbell Barton
Caused by 5adfc51a0fc7f, sharing keymaps caused changing tools to unregister gizmos and remove their keymaps. Workaround for now by not removing the keymap.
2019-05-24Fix failing assert on factory settings loadJulian Eisel
Loading factory preferences from the preferences window and triggering a redraw then would cause the failing assert. We shouldn't mess with window-manager data when loading preferences only.
2019-05-24Keymap: use a generic gizmo keymap by defaultCampbell Barton
While support for gizmo specific keymaps remains, this should only be used if a gizmo-group is doing something that requires one. There was also a hidden limitation that meant only the last registered tweak keymap would ever be used. For now leave this using the generic keymap since all tweak modal keymaps were using the same template anyway.
2019-05-24Keymap: share 3D view transform keymapsCampbell Barton
While internally these are separate gizmos, there is no reason to have a keymaps for each. Also prefix the gizmo with "3D View" since there are other kinds of transform gizmos.
2019-05-23Correct last commit (gizmo order was reversed)Campbell Barton
2019-05-23Cleanup: replace the visible gizmo linked list with an arrayCampbell Barton
Avoids an allocation per gizmo & simplifies limiting the lookup past the first intersecting 2D gizmo found.
2019-05-23Gizmo: highlighted gizmo now handles all events firstCampbell Barton
Only mouse events were handled by the highlighted gizmo, this allows more flexibility with event handling.
2019-05-23Cleanup: split keymap handling into functionsCampbell Barton
Move keymap handler logic for keymap and gizmo handlers into their own functions. This makes it possible to refactor keymap handling without large changes or duplicating code.
2019-05-23Fix T64764: 'Reload' on linked libraries disconnects proxy armature datablocks.Bastien Montagne
Note that this only fixes the core issue reported (caused by own dummy mistake in rBd0df7fb3b94ea), investigating that report uncovered at leat two more issues, including a crasher (when reloading after an undo)...
2019-05-22Preferences: add handler for loading factory preferencesCampbell Barton
Allows app-templates to define their own adjustments to preferences. This matches `load_factory_startup_post`, use when loading preferences.
2019-05-22WM: call wm_file_read_post after resetting preferencesCampbell Barton
Also avoid diverging code paths for loading startup & preferences.
2019-05-21Cleanup: clang-format, sort structsCampbell Barton
2019-05-21Fix part of T64679: Missing dirty preferences tagCampbell Barton
- Editing shortcuts. - Editing walk mode navigation. - Adding/removing paths.
2019-05-21Viewport: MSAA support during ViewportRenderingJeroen Bakker
When rendering viewport to an offscreen buffer the buffer was constructed for non anti aliasing (0 samples). This made the objects that are drawn by the `object_mode` including `wireframe` draw type non-anti-aliased. The offscreen buffers will be constructed based on the user setting for viewport multisampling (`U.ogl_multisamples`). The same setting will also be used when previewing scene strips in the sequencer. For now this only improves wireframe drawing in the scene strips. To improve the Anti aliasing in the scene strips we need to get finer control in the draw manager. This will be part of a different patch I am preparing. Please note that this patch also cleansup some unused code in the offscreen rendering (FSAA code was still existing, but never called) Reviewed By: brecht Maniphest Tasks: T64849 Differential Revision: https://developer.blender.org/D4907
2019-05-21Fix T64421: crash using redraw timer benchmarkBrecht Van Lommel
2019-05-20Fix T63443: tool 'builtin_brush.draw' not found for space 'IMAGE_EDITOR'Jacques Lucke
2019-05-20Fix T64776: Multiple close file dialogsJacques Lucke
2019-05-20Cleanup: add wm_utils.c for generic functionsCampbell Barton
2019-05-20WM: add wmGenericUserData utility structCampbell Barton
Useful to have a generic user data with an optional custom free function, use for wmGesture.
2019-05-19Cleanup: use wm prefix for GenericCallbackCampbell Barton
Without this it's not clear what kinds of data this deals with.
2019-05-18macOS/Linux: use more standard button layout in quit dialogBrecht Van Lommel
Ref D3118. This matches macOS and GNOME.
2019-05-18Windows: use more standard button layout in quit dialogBrecht Van Lommel
macOS and Linux remain the same as before. Ref D3118.
2019-05-18macOS: always use the Blender quit dialog, like other platformsBrecht Van Lommel
The same was done for Windows, but some extra changes were needed to make it work on macOS. This is required because the Blender quit dialog now contains additional settings for image saving.
2019-05-17UI: Small tweaks to the save dialog:William Reynish
- Add back info icon at the top. - Remove icons from the buttons. None of the OS's we support use icons here - Remove button align. It doesn't work well with the active default highlighting - Center-align the text inside the buttons To make this look even nicer, we should add more padding all around the edges, but that could be done separately.
2019-05-17UI: Use correct icon for saving in the close dialog.William Reynish
2019-05-17UI: File Close DialogJacques Lucke
This adds a new dialog that is shown whenever a file is closed. So, either when a new file is opened, or when Blender quits. The dialog allows to save unsaved changes. Furthermore it also allows saving images that have been modified in Blender, but are not saved yet. Known limitations: * Images that have no file path and have not been packed before, are not saved. * On MacOS the old dialog is shown when Blender quits. Reviewers: brecht, billreynish Differential Revision: https://developer.blender.org/D4860
2019-05-16Refactor: Simplify ID Property freeingJacques Lucke
This also makes `IDP_CopyProperty` the "opposite" of `IDP_FreeProperty`, which is what I'd expect. Two refactoring steps: * rename IDP_FreeProperty to IDP_FreePropertyContent * new IDP_FreeProperty function that actually frees the property Reviewers: brecht Differential Revision: https://developer.blender.org/D4872
2019-05-16Fix T64642: Reset to default preferences glitchCampbell Barton
2019-05-15Fix T63748: Long startups after network drives are disconnected.Bastien Montagne
We need to make those paths validation async, since some infamous OS is unable to provide a quick way to check whether a path is valid or not... Not much to say here, this is basic wmJob stuff really... We don’t even need complex threaded coordination locks or atomics, given how simple the changes are here. Fake-tested with some `sleep()` calls to add atificial delay, seems to work as expected.
2019-05-15Gizmo: add depth bias for 3D selectionCampbell Barton
This allows some gizmos priority over others even when they're behind.