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-02-15Revert "Fix T73763: Laggy with nodes Editor + International Fonts"Clément Foucault
This reverts commit a21f5ec56245f7f1fbede4aa3c140a582c3a6a1b.
2020-02-14Fix T73763: Laggy with nodes Editor + International Fontsmano-wii
Two main reasons for the lag: - Allocation of memory with transfer to GPU. - BLF_cache_clear(); The memory allocation seems to be unnecessary, so I removed it. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6837
2020-02-10Cleanup: spellingCampbell Barton
2020-02-07Cleanup: use of 'unsigned'Campbell Barton
- Replace 'unsigned' used on it's own with 'uint'. - Replace 'unsigned const char' with 'const uchar'.
2020-01-22Bugfix for T69413Tyler Seacrest
Fixes the invisible scrollbar when opening preferences by 'Editor Type' by always creating scrollbars for V2D_COMMONVIEW_PANELS_UI objects. This removes a fix (T47047) for dpi issues when dragging out the toolbox. The new toolbox in 2.8 does not seem to have the same DPI issues. Exact steps for others to reproduce scrollbar invisible (T69413): change the 3d viewport to preferences and go to addons. The scrollbar will not be visible To verify there are no DPI issues: Apply the patch and open blender. Hide the toolbar. Split the 3d view port into 4 windows, such that one is very small horizontally, another is very small vertically, and a third is small in both directions. Drag out the toolbar arrow on all four viewports. The Toolbar will be the same size in each. For further verification, adjust the scaling and repeat. {F7805968} Also this is my first time submitting a patch. Some instruction is welcome! Reviewed By: #user_interface, Severin Maniphest Tasks: T69413 Differential Revision: https://developer.blender.org/D6050
2019-12-04Make curve decimation only take into account the selected curve pointsSebastian Parborg
Previously the decimation would take the whole curve into account when decimating and not just the selected part. This also contains various smaller bug fixes for the fcurve decimation. Reviewed By: Sybren Differential Revision: http://developer.blender.org/D6286
2019-09-19Cleanup: spellingCampbell Barton
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-09-06Cleanup: use doxy sectionsCampbell Barton
2019-06-04Cleanup: rename 2D scroll definesCampbell Barton
- Use `V2D_SCROLL_` prefix. - Use more descriptive names.
2019-06-03UI: Prevent scrollbars from getting too small to grabEitanSomething
Differential Revision: https://developer.blender.org/D5001
2019-05-28Cleanup: use time scrub instead of scrubbingCampbell Barton
Renaming was only done to ED_time_scrub_ui.h, function names and struct members used term 'scrubbing' which is ambiguous.
2019-05-08UI: Move scrollbars to the right in animation editorsJacques Lucke
The text, that was in the scrollbars, stays on the left. Reviewers: brecht, billreynish Differential Revision: https://developer.blender.org/D4821
2019-05-07UI: Animation editor scrubbing areaJacques Lucke
The main reason for this change is to allow setting the active frame with the left mouse button, while still being able to select e.g. keyframes with the same mouse button. The solution is to introduce a new scrubbing region with a specialized keymap. There are a couple of related todos, that will be handled in separate commits. Those are listed in D4654. This solves T63193. Differential Revision: https://developer.blender.org/D4654 Reviewers: brecht, billreynish
2019-05-03Refactor: Support arbitrary y offset for channel listJacques Lucke
At first you could think that this refactor would not be necessary, because `ACHANNEL_FIRST` exists already. It contained the small y offset that all channels had. Unfortunately, a lot of code assumed that `ACHANNEL_FIRST = -ACHANNEL_HEIGHT`, making the define pretty much useless. This refactor fixes that for the action and nla editor. As a nice side effect, this patch fixes channel box select. Before there was always have a half-channel offset. Reviewers: brecht Differential Revision: https://developer.blender.org/D4783
2019-05-02Refactor grid and scale indicator text drawingJacques Lucke
This affects the timeline, dopesheet, graph editor, sequencer, clip editor and nla editor. Removed structs and enums: `V2D_ARG_DUMMY`, `eView2D_Units`, `eView2D_Clamp`, `eView2D_Gridlines`, `View2DGrid`. A main goal of this refactor is to get rid of the very generic `View2DGrid` struct. The drawing code became very complex because there were many different combinations of settings. This refactor implements a different approach. Instead of one very generic API, there are many slighly different functions that do exactly, what we need in the different editors. Only very little code is duplicated, because the API functions compose some shared low level code. This structure makes the code much easier to debug and change, because every function has much fewer responsibilities. Additionally, this refactor fixes some long standing bugs. E.g. when `Show Seconds` is enabled, you zoom in and pan the view. Or that the step size between displayed frame numbers was always `>= 2`, no matter how close you zoom in. Reviewers: brecht Differential Revision: https://developer.blender.org/D4776
2019-04-30Refactor: Separate scrollers from text drawing in APIJacques Lucke
This is a continuation of rB7fdffd735ff24, where I separated the e.g. frame number drawing from scrollers internally. This patch changes the API, so that space draw handlers have to draw these numbers explicitely. This greatly simplifies the scrollers API for all spaces that just need scrollers without any frame numbers. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D4747
2019-04-23Cleanup: minor changes to scrollbar checksCampbell Barton
Remove some redundant comments & declare vars in for loops.
2019-04-23UI: ignore events in empty region overlap areasCampbell Barton
- Resizable areas use 2D view bounds. - Header uses the button bounds. - A margin is added to avoid clicking between buttons. - Region resize edges clamp to the 2D view bounds. Resovles T61554
2019-04-17Cleanup: comment length in interfaceCampbell Barton
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-04-16UI: Refactor View2D number drawingJacques Lucke
This also fixes alignment issues in many editors. E.g. the frame numbers were badly aligned to the grid lines in the timeline. Checkout the images in D4681 for more examples. Reviewers: brecht Differential Revision: https://developer.blender.org/D4681
2019-03-25Cleanup: return argument namingCampbell Barton
2019-03-25Cleanup: use braces for interface codeCampbell Barton
2019-03-21Cleanup: move functions into doxy sectionsCampbell Barton
Also use const args for queries.
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-02-23Fix strips text offset when zooming VSE timelineRichard Antalik
Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming V2D, but is required to calculate text height in UI_view2d_text_cache_draw This caused text in strips to "jump around" There was a comment in UI_view2d_zoom_cache_reset: While scaling we can accumulate fonts at many sizes (~20 or so). Not an issue with embedded font, but can use over 500Mb with i18n ones! See [#38244].
2019-02-23Revert "Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming ↵Richard Antalik
V2D, but is required to calculate text height in UI_view2d_text_cache_draw" Accidentaly committed unwanted changes. This reverts commit 6bcdcc96c2548e0ee5e18acc37915aedee6329e0.
2019-02-23Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming V2D, but ↵Richard Antalik
is required to calculate text height in UI_view2d_text_cache_draw This caused text in strips to "jump around" There was a comment in UI_view2d_zoom_cache_reset: While scaling we can accumulate fonts at many sizes (~20 or so). Not an issue with embedded font, but can use over 500Mb with i18n ones! See [#38244]. Reviewed by: Brecht Differential revision: https://developer.blender.org/D4389
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-25Missed last commitCampbell Barton
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-04UI: alter scrollbar extents to not interfere with split/join areas.Harley Acheson
Differential Revision: https://developer.blender.org/D4141
2019-01-04Cleanup: use typed unsigned intsCampbell Barton
2018-11-14Merge branch 'master' into blender2.8Campbell Barton
2018-11-14Cleanup: comment block tabsCampbell Barton
2018-11-13Cleanup: use const argsCampbell Barton
2018-11-07Fix redraws from non-existing scrollbarsCampbell Barton
Cursor motion was often causing redraws. Distance to scrollbars that don't exist in hidden regions caused redraws (for alpha fading). Check if scrollbars are used before calculating fade.
2018-10-22UI: move scrollbars inside region tabsCampbell Barton
2018-10-09Cleanup: namingCampbell Barton
- immAttrib* -> immAttr* - immSkipAttrib -> immAttrSkip Term 'attr' is a convention for GPU module.
2018-09-27Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-27Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3732
2018-09-02Cleanup: comment blocksCampbell Barton
2018-09-02Cleanup: comment blocksCampbell Barton
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-15GPU_matrix: use Blender's naming conventionsCampbell Barton
Thanks to @sergey for review
2018-07-11UI: don't change scrollbar size on mouse move, only fade.Brecht Van Lommel
It's not necessary to do both, and trying to hit a target that changes size is annoying.
2018-07-08Cleanup: abbreviate unsigned types (editors, wm)Campbell Barton