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
2018-06-02Fix inaccuracy of SCREEN_OT_area_split when snap to midpoint and adjacent.Germano
By default when moving a edge of the screen it always snaps to an invisible grid with unit of 4 pixels. This was also affecting the snap to the midpoint and adjacent. The solution was to make the snap to areagrid optional and use values of `origmin` and `origsize` that match the transformations in screen_edit.c.
2018-06-01Merge branch 'master' into blender2.8Campbell Barton
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01Cleanup: whitespaceCampbell Barton
2018-06-01Draw background on pulldown widgets if the header is transparent.Brecht Van Lommel
Since the viewport header now supports transparency, text on pulldowns can be hard to read if their color matches the viewport content. Background is drawn using the 'inner' theme color, that was unused until now.
2018-06-01Add 'Toggle Header' to header context menu.Pablo Vazquez
Also disable collapsing the header by dragging it up/down. This prevents accidentally hiding the header when resizing areas.
2018-06-01Fix render engine info region when overlap and header on bottomDalai Felinto
Note there is some talk about changing the position of this (which would be strange in the image editor by the way, since there we use the bottom for the result of the current pixel when dragging the mouse). However first I wanted to fix this regardless.
2018-05-31UI: new tool properties space typeCampbell Barton
This currently shows panels that were in the 2.79 3D view toolbar which are now popovers. In some cases it's useful for these to stay open. This commit adds a space type to do this. Note this is currently empty in object mode.
2018-05-31UI: support drawing panels from multiple contextsCampbell Barton
2018-05-30Fix render info not working with overlap regionsDalai Felinto
2018-05-29Correct last commitCampbell Barton
Left unneeded code in space_context_cycle_invoke
2018-05-29Keymap: partially implement changes from T55162Campbell Barton
- Use Tab key for search. - Number keys switch modes. - The number of the current mode can open a submode menu (currently only works for edit-mode) - Ctrl-Tab, Ctrl-Shift-Tab - cycle workspaces.
2018-05-29UI: Expand space sub-types into the menuCampbell Barton
Initial support for expanding editors, see: T54744
2018-05-25Fix T55183, fix T55174: crashes with workspace / view layer relation.Brecht Van Lommel
Don't store pointers to ViewLayer in the workspace, only names. Add specific relation type since the generic mechanism makes the code hard to follow. Integrate with pointer restore for undo and library remapping code to avoid data going out of sync. Also add relation automatically if there doesn't exists one yet in BKE_workspace_view_layer_get, because in general it's really hard to ensure it will exist when making arbitrary scene changes. Differential Revision: https://developer.blender.org/D3432
2018-05-25Keymap: use Ctrl-Shift-Space for fullscreen areaCampbell Barton
Closer to Shift-Space, less awkward to access.
2018-05-24Keymap: remove Ctrl-Up/Down to toggle full-areaCampbell Barton
This is already accessible via Shift-Space which can be accessed easily with one hand.
2018-05-24Merge branch 'master' into blender2.8Campbell Barton
2018-05-243D View: remove poll 3D view for copy/pasteCampbell Barton
These operators only need selected objects.
2018-05-23UI: Global "Status-bar" Area (WIP)Julian Eisel
* Add horizontal bar at bottom of all non-temp windows, similar to the Top-bar. * Status-bar is hidden in UI-less fullscreen mode * Current contents are preliminary and based on T54861: ** Left: Current file-path if needed. "(Modified)" note if file was changed. ** Center: Scene statistics (like in 2.7 Info Editor). ** Right: Progress-bars and reports * Internally managed as own "STATUSBAR" editor-type (hidden in UI). * Like with the Top-bar, Status-bar data and SDNA writing is disabled. * Most changes in low-level screen/area code are to support layout bounds that differ from window bounds. Design task: T54861 Main changes approved by @brecht.
2018-05-23WM: add back Ctrl-Space to toggle full areaCampbell Barton
2018-05-23Fix T55072: Top bar disappears when loading factory settings (causing ASAN ↵Julian Eisel
crash)
2018-05-23Cleanup: move toolsystem into own includeCampbell Barton
Many files using the window manager don't access the tool-system. This avoids rebuilding many files when the tool-system changes.
2018-05-22Drivers UI (Part of T55145): Add "Show Drivers Editor" entry to RMB menusJoshua Leung
This commit adds an operator, "Show Drivers Editor", to the RMB menu when clicking on properties. As per T54653, this will open a new Graph Editor instance in a new/separate window (much like how the User Preferences show up in a popup window now), and will configure all the relevant panels so that you can see and edit the driver settings immediately without doing a lot of the view configuration steps that were previously needed. When doing so on a property that is driven, the driver/fcurve for that property will be made active in the editor, ready for you to start editing its settings without having to hunt it down again first.
2018-05-22UI Tweak: Make User Preferences window slightly taller, to better fit the ↵Joshua Leung
contents
2018-05-22Fix outliner crashes when dragging elements in some cases.Brecht Van Lommel
Avoid rebuilding outliner tree in more cases, also helps performance.
2018-05-21UI: use spacebar for toolbarCampbell Barton
- This allows quick, consistent toolbar access w/o conflicting w/ the keymap. Where pressing space before a key activates that operator as a tool instead of running immediately. - Search can still be accessed by pressing spacebar again. - When there is no toolbar for a space, operator search still opens.
2018-05-18UI: Add menu to show the toolbarCampbell Barton
For people who prefer to keep the toolbar hidden, expose as a menu (currently Shift-Space).
2018-05-18Fix tools not being initialized on startupCampbell Barton
2018-05-18Fix crash running in background mode, after recent changes.Brecht Van Lommel
2018-05-18Tool System: support for tool cursorsCampbell Barton
2018-05-18Tool System: store the active tool in ScrAreaCampbell Barton
Without this we need to have the context to get the (space_type, mode) args for an active tool lookup. For event handling & poll its more convenient to have direct access.
2018-05-17Tool System: per space/mode tool supportCampbell Barton
This patch adds support for: - Per space-type tools (3D view and edit). - Per mode tools (object, edit, weight-paint .. etc). The top-bar shows the last activated tools options, this is a design issue with using a global topbar to show per-space settings. See D3395
2018-05-17Fix menu navigation and modal tools affecting the active region.Brecht Van Lommel
We updated the active region during redraw to fix missing updates on file load, restrict it more now to avoid unwanted updates.
2018-05-16Fix visible region overlap calculationCampbell Barton
Existing code didn't account for top/bottom overlap.
2018-05-15Fix random crashes in the outliner, especially with bigger scenes.Brecht Van Lommel
The outliner can redraw quicker without rebuilding the tree, for example when just moving the mouse and highlighting different items. The way this worked is that the outliner would be tagged to avoid rebuilding, however if another operation that does require rebuilding happens in the meantime we could go out of sync and crash.
2018-05-15Undo System: remove nested edit-mode undo callsCampbell Barton
Regression in recent undo system changes, This caused T55048. When each mode had its own undo stack it was important to initialize it when entering edit-mode.
2018-05-13Fix/workaround crash when appending workspace in edit modeJulian Eisel
Linking/appending in edit mode currently isn't supported. For workspaces it should probably be, but we can look into supporting this later. For now gray out buttons in "Add Workspace" menu while in edit mode.
2018-05-08Cleanup: whitespace, duplicate includesCampbell Barton
2018-05-08Prevent segfault when opening file browser while a 2.79 file was loaded.Sybren A. Stüvel
Loading a file that was written with the master branch into the 2.8 branch, and then trying to load or save, caused a segfault.
2018-05-07Fix crash in debug drawing of fullscreen exit iconJulian Eisel
Steps to recreate were: * Go into fullscreen mode (Alt+F10) * Open debug menu (Ctrl+Alt+D) * Set value to 1 * Confirming should crash (at least in debug builds)
2018-05-07Remove alternative action-zone drawing for collapsed regionsJulian Eisel
Was hidden behind debug values 1, 2 and 3. Also cleaned up logic in region_azone_edge_initialize. It was using a variable called is_hidden that actually should've been called is_visible.
2018-05-07UI: Hide & shrink scroll-bars based on cursor positionJulian Eisel
Scroll-bars are now hidden unless the cursor approaches them, in which case they smoothly grow and become more & more visible. Note that since 0d309144020168e55, scroll-bars are drawn on top of editor contents. There's no more jumping of buttons when scroll-bars appear. Technical notes: * AZones are used to adjust scrollbars based on mouse movements We may want to support screen level AZones if we want scrollbars to also smoothly appear when approaching them from a different area. I also plan to make further changes to AZones to clean up stuff a bit. * Had to move AZone handling to a post ARegion init stage, since we need the updated View2D data from there. * View2D masks and scroller rectangles are now updated on every redraw. It's cheap to do that though.
2018-05-07UI: Draw scroll-bars overlapping with editor contentJulian Eisel
Scroll-bars used to draw in a little extra space in the editor, causing buttons to jump a bit when they appeared/disappeared. Now they draw on top of the buttons, just small enough to avoid bigger overlaps. Followup commits will do further adjustments. With this we can get rid of a hack that was calling the (often Python defined) panel definition - the panel 'draw' callback - twice.
2018-05-06Fix wrong header alignment in user preferences, after recent commit.Brecht Van Lommel
2018-05-06UI: keep header top/bottom alignment the same when switching editor types.Brecht Van Lommel
2018-05-06Cleanup: deprecate area.headertype.Brecht Van Lommel
This was still used in a few places but not kept in sync with the actual header position. Always get alignment from the header region now.
2018-05-06Fix issue with hidden headers after previous commit.Brecht Van Lommel
2018-05-06UI: region overlap now works for headers as well.Brecht Van Lommel
This is for the 3D viewport and image editor. A remaining issue is that pulldown menu buttons only show text, which is not visible on all background colors, so making the header entirely transparent does not work well at the moment.
2018-05-02Fix T54864: Assert when changing interface display scaleDalai Felinto
The asserts were introduced on rB5f6c45498c92 (top-bar). Although the asserts are technically correct, they would fail even in master. And the commit simply added the asserts without fixing the situation itself (as you can see in the report, it is really simple to reproduce this issue). I propose we remove the asserts and bring them back only when the situation itself is fixed. It doesn't make sense to introduce asserts that would fail with the current state of the code.
2018-04-29UI: better support for dynamically sized regions in topbar.Brecht Van Lommel
Dynamically sized regions in the topbar were flickering due to only updating their size after redraws. Now there is an optional layout() callback for all regions in an area to do UI layout first, then refresh the region layout, and then do the actual drawing for each region. Task T54753