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-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
2018-04-28Cleanup: style, duplicate includesCampbell Barton
2018-04-27UI: multi-column toolbar supportCampbell Barton
2018-04-27UI: Bring Embossing for the top-bar and quad-viewDalai Felinto
Note: Quad-View region overlay drawing is not working because of e01cadd657c7. However I tested this patch after reverting that commit locally and this patch's code seems fine. Partial revert of 3d62230ed673.
2018-04-27WM: new offscreen window draw method to replace all existing methods.Brecht Van Lommel
For Blender 2.8 we had to be compatible with very old OpenGL versions, and triple buffer was designed to work without offscreen rendering, by copying the the backbuffer to a texture right before swapping. This way we could avoid redrawing unchanged regions by copying them from this texture on the next redraws. Triple buffer used to suffer from poor performance and driver bugs on specific cards, so alternative draw methods remained available. Now that we require newer OpenGL, we can have just a single draw method that draw each region into an offscreen buffer, and then draws those to the screen. This has some advantages: * Poor 3D view performance when using Region Overlap should be solved now, since we can also cache overlapping regions in offscreen buffers. * Page flip, anaglyph and interlace stereo drawing can be a little faster by avoiding a copy to an intermediate texture. * The new 3D view drawing already writes to an offscreen buffer, which we can draw from directly instead of duplicating it to another buffer. * Eventually we will be able to remove depth and stencil buffers from the window and save memory, though at the moment there are still some tools using it so it's not possible yet. * This also fixes a bug with Eevee sampling not progressing with stereo drawing in the 3D viewport. Differential Revision: https://developer.blender.org/D3061
2018-04-26UI: toolbar single column size snappingCampbell Barton
Once a region is set to it's snapped size, zooming keeps the size.
2018-04-24Hide top-bar in fullscreenJulian Eisel
Fullscreen as in the Alt+F10 fullscreen.
2018-04-24OpenGL: Remove remaining instances of GL_RGBA16F_ARB.Clément Foucault
There is no need for it now that we use opengl 3.3. Use GL_RGBA16F instead.
2018-04-23Fix opening new windows would try to open global areas twiceJulian Eisel
Would cause weird & broken areas below the topbar.
2018-04-23Indentation cleanupDalai Felinto
2018-04-23Fix T54765: build error on macOS.Brecht Van Lommel
2018-04-23Cleanup: Get rid of ScrArea.butspacetype syncing with ScrArea.spacetypeJulian Eisel
The only real reason we need `butspacetype` is while switching areas, where we need to delay the actual switch to the RNA _update callback since only there we can access context. So instead of trying to sync it with `spacetype`, only set while needed and unset it afterwards (as in set to `SPACE_EMPTY`). This should also allow us to re-use `butspacetype` in versioning code when trying to read removed editors. It'll store the space type value of the removed editor which we can then use on versioning. For backwards compatibility, we store `butspacetype` with the value of `spacetype`.
2018-04-22UI: Editor outline color themableDalai Felinto
Note: Not bothering with doversion, re-using 280, 10 bump.