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
2020-08-26Cleanup: use const variables in interface codeCampbell Barton
2020-08-19UI Code Quality: Use LISTBASE_FOREACH in interface directoryHans Goudey
I only skipped a few loops in the monstrous ui_handle_menu_event function. Also, I only changed variable names where necessary to prevent redeclarations. Differential Revision: https://developer.blender.org/D8586
2020-08-01Cleanup: use term init instead of initialize/initialiseCampbell Barton
The abbreviation 'init' is brief, unambiguous and already used in thousands of places, also initialize is often accidentally written with British spelling.
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Rename bScreen variables from sc/scr to screenJulian Eisel
Part of T74432. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
2020-04-03Cleanup: Rename ScrArea variables from sa to areaJulian Eisel
Follow up of b2ee1770d4c3 and 10c2254d412d, part of T74432. Now the area and region naming conventions should be less confusing. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
2020-04-03Cleanup: Continue renaming ARegion variables from ar to regionJulian Eisel
Continuation of b2ee1770d4c3, now non-single word variables are also renamed. Part of T74432. Also ran clang-format on affected files.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-03-06Bring back code accidentally removed by previous commitJulian Eisel
Probably got lost when resolving merge conflicts.
2020-03-06Cleanup: Reduce context usage in UI functionsJulian Eisel
Part of https://developer.blender.org/T74429. There's a chance that this causes some issues becaue in some cases we change from getting the window from context to getting it from somewhere else.
2020-02-28Fix T65351: visual glitches when scrolling in popoversYevgeny Makarov
2020-02-25WM: move cursor refresh tag to the windowCampbell Barton
Avoids having to check the current area is NULL.
2020-02-22Fix crash when open default templateAntonio Vazquez
As soon you select the default template, Blender crash on Winodws. This was introduced in commit {0b626703}
2020-02-22Cleanup: internal changes to cursor resettingCampbell Barton
- Move gizmo cursor check into ED_region_cursor_set so the result of calling this function is the same as flagging for cursor update. - Use tagging in ui_popup_block_remove which avoids adding a mouse-move event in case the cursor needs to be changed again.
2020-01-29Fix T73487: Crash when opening filebrowser while error is displayedJulian Eisel
More concretly, the crash would happen if a filebrowser is opened while an error popup is visisble **in a different window**. Code assumed the popup to be in the active window/screen, but it may actually be displayed in a non-active window. Temporarily override context to ensure this assumption is correct.
2020-01-22Cleanup: Rename ED_region_init() -> ED_region_floating_initialize()Julian Eisel
This function is a very special refresh function just for floating regions. _initialize is more consistent with ED_area_initialize() so use that too. Also adds assert.
2019-09-26WM: clean up cursors constants and codeBrecht Van Lommel
There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197
2019-08-19Fix T68672: splash screen does not remain centered when window resizesLuis de Bethencourt Guimera
Differential Revision: https://developer.blender.org/D5508
2019-06-02Cleanup: better comments and naming for redraw flagsBrecht Van Lommel
2019-05-14Interface: Free argument callback for popupsJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4858
2019-04-24Fix T63566: Pop-up closes before mouse-overCampbell Barton
Closely spaced buttons caused the curve clipping popup to close before the cursor could mouse-over it.
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-25Cleanup: use braces for interface codeCampbell Barton
2019-03-18Fix color ramp eyedropper menu itemCampbell Barton
This couldn't be accessed because the poll function was checking the active button. Add a "color_ramp" context pointer which is set by the menu. Alternative fix to D3984
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-18Fix T60608: Popup dialogs Y-axis reset after dragCampbell Barton
Caused by fc32bd729c5b7
2019-01-10Fix T60358: popup clipping within windowCampbell Barton
Moving menu contents wasn't working properly.
2018-09-11Cleanup: use UI_ prefix for block flagCampbell Barton
2018-09-11Merge branch 'master' into blender2.8Campbell Barton
2018-09-11UI: split theme draw style into separate fieldCampbell Barton
Was using UI_BLOCK_LOOP to control draw style, this meant we couldn't use popup theme colors for cases where it the interface has the same purpose as a popup but happens not to use this flag.
2018-07-06UI: Add extra padding to menus to draw sub-menu triangles inJulian Eisel
Shortcut strings would be offset to the left to make space for the triangles, breaking the alignment with other shortcut strings. Now this alignment is kept by making menus slightly wider if there's a sub-menu triangle visible, making room for the triangle.
2018-07-04Cleanup: pass window to listeners, instead of screen + workspace.Brecht Van Lommel
2018-06-12Cleanup: remove unused context argsCampbell Barton
2018-05-19UI: Use popover for toolbar popup operatorCampbell Barton
- Currently the popup closes immediately, could be made configurable. - Support exiting popups when their submenu's are accessed.
2018-05-13UI: fix popovers not properly working with scroll arrows for long menus.Brecht Van Lommel
2018-05-06UI: fixes for 3D viewport popovers moving / flipping on edits.Brecht Van Lommel
* Ensure popover does not change direction or location. * Open popover towards the relevant editor, like pulldown menus. * Use a bigger maximum assumed size to deal with some corner cases. * Do proper 3D viewport header refresh on shading mode changes.
2018-04-30Fix some popup menus that don't support it refreshing and crashing.Brecht Van Lommel
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-29UI: don't flip contents of popovers, avoid closing when size changes.Brecht Van Lommel
2018-04-28UI: fix popover menus not refreshing when changing settings.Brecht Van Lommel
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-22UI: support for center popovers over buttonsCampbell Barton
2018-04-22Merge branch 'master' into blender2.8Campbell Barton
2018-04-22Cleanup: UI namingCampbell Barton
2018-04-10Merge branch 'master' into blender2.8Sergey Sharybin
2018-04-09Fix invalid context when refreshing popupsJulian Eisel
Patch D2759 by @raa, with minor edits by me.
2018-02-17Code cleanup: remove WM subwindows.Brecht Van Lommel
These no longer made much sense after regions were added, they just duplicated state that was already in the regions.