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-07-01Cleanup: right shift in interface codeCampbell Barton
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-05-23Cleanup: strip trailing space from interface filesCampbell Barton
2018-05-07More tweaks to strict compiler flagsSergey Sharybin
2018-03-23Cleanup: stray tabsCampbell Barton
Tabs in middle of code (mostly for no reason / by accident).
2018-02-01Fix T53686: VSE Render crash when zooming timelineSergey Sharybin
This is rather a workaround to avoid main thread freeing all glyph caches at the same time as sequencer uses fonts to draw text sequences. Ideally we need to either make cache more local, or user-counted or to make somewhat more global locks. All this ends up in a bigger refactor which is better for 2.8. For the meantime let's make Blender more stable with a tiny workaround. Downside is that keeping zooming things up and down in interface during render will increase memory usage by unused glyph caches. It's not too bad though, all unused caches will be freed first time at area zoom after render. Thanks Bastien for review!
2017-10-23VSE: draw grid lines at every secondCampbell Barton
Was hard-coded to 25 frames. D2893 by @jooert
2017-08-29View2D: function to get view to region matrixCampbell Barton
2016-02-29Cleanup: Duplicated functionJulian Eisel
wmOrtho2_region_pixelspace and wmOrtho2_region_ui were doing exact same thing since rBSa86482f81cf3.
2016-02-01View2D: avoid divide-by-zeroCampbell Barton
2016-01-25Correct fix for T47047Campbell Barton
Caused new 2d views to initialize w/o scrollbars
2016-01-24Add missing line width in the 2d view grid drawingSergey Sharybin
2016-01-22OpenGL: pull glBegin/End out of loopsMike Erwin
When drawing 2D grid and 3D axes.
2016-01-09Cleanup: warning/spellingCampbell Barton
2016-01-08Fix T47047: Toolbars opening at maximum zoom levelCampbell Barton
There were 2 issues: - toolbars were set initialized in user-defaults so their scroll & zoom level were set. - initializing new 2d views included the scroll width, which scaled the new views zoom level, especially when dragging out.
2015-10-16Fix T46510: VSE View-all crops out imageCampbell Barton
2015-10-16Cleanup: use bools for v2d, minor ws editsCampbell Barton
2015-06-30Cleanup: move BLI_timestr to BLI_timecodeCampbell Barton
2015-06-04Cleanup: clarify order of precedence: &/?Campbell Barton
2015-05-31UI: comments (doxygen tweaks)Campbell Barton
2015-05-20doxygen: corrections/updatesCampbell Barton
Also add depsgraph & physics
2015-05-04Cleanup: wrapped function indentationCampbell Barton
2015-02-09Fix T43554: Zoom to mousepos makes 2D Views pan after zoom limits arejulianeisel
reached There are a couple of things that I don't like here, but it seems like the best way to handle this for now.
2015-01-31Compiler warning: double-promotionCampbell Barton
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-10-28Cleanup: use SELECT flagCampbell Barton
2014-09-10Partial fix T41749Campbell Barton
2d & 3d cached text now draws pixel aligned now.
2014-08-13SpellingCampbell Barton
2014-06-14UI: refactor text cache to use zero length arraysCampbell Barton
also correct some bad casts
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-21Code cleanup: view2d api namingCampbell Barton
2014-04-21View2d: API Cleanup for view<->region conversionCampbell Barton
View2D had some inconsistencies making it error prone in some cases. - Inconstant checking for NULL x/y args. Disallow NULL args for x/y destination pointers, instead add: - UI_view2d_region_to_view_x/y - UI_view2d_view_to_region_x/y - '_no_clip' suffix wasn't always used for non-clipping conversion, switch it around and use a '_clip' suffix for all funcs that clip. - UI_view2d_text_cache_add now clips before adding cache. - '_clip' funcs return a bool to quickly check if its in the view. - add conversion for rectangles, since this is a common task: - UI_view2d_view_to_region_rcti - UI_view2d_region_to_view_rctf
2014-04-21Fix for UI_view2d_to_region_float (was ignoring x,y args)Campbell Barton
use this for grease pencil stroke conversion to avoid float->int->float conversion.
2014-04-17Viewport Text Drawing: replace single allocs with a memarenaCampbell Barton
- pass label strlen since in many cases its already known. - use single linked list for cached text drawing. - add BLI_link_utils.h for single linked list macros. own tests give approx 22% overall speedup.
2014-02-22Fix T38348: Panel remains scrolled when switching tabsCampbell Barton
2014-01-29UI: Refactor timecode functions into BLI_timecodeCampbell Barton
- deduplicate timecode_simple_string from image.c - replace V2D_UNIT_SECONDSSEQ with V2D_UNIT_SECONDS - avoid possible buffer overflow bugs (sprintf -> BLI_snprintf) - remove option not to use timecode and split into 2 functions Patch D227 by Andrew Buttery with own refactoring.
2014-01-20Correction for recent commit clearing font cacheCampbell Barton
- move cache reset into view2d and comment about the rationale for resetting cache there. - missed other places where view2d zoom level can change (smoothview, borderzoom, home and file reload) - comment about DPI wasn't correct.
2014-01-16Code Cleanup: style and redundant castsCampbell Barton
2014-01-15Code Cleanup: avoid duplicate calls to WM_window_pixels_x/yCampbell Barton
2014-01-15Fix for minor precision glitch while zooming on clamped view2dCampbell Barton
2014-01-12Style Cleanup: whitespaceCampbell Barton
2014-01-04UI: Use bool rather then int/short's where possibleCampbell Barton
2013-12-07Code Cleanup: pass rectangles as const in insterface filesCampbell Barton
2013-12-02Blender Font (BLF): add length argument to string width/height functionsCampbell Barton
This also fixes a crash editing buttons longer then UI_MAX_DRAW_STR
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-08-27Mask primitivesSergey Sharybin
Currently only circle and square, might be easily extended in the future. New primitives are creating at cursor location. This also implied adding 2d cursor to space clip. Also fix set 2D cursor location which didn't work in image editor's mask mode since 2.67. TODO: draw_image_cursor better be moved to some more generic file, but it's not so much important for now and might be solved later. Thanks Campbell for the review!
2013-07-19style cleanup: switch statements, include break statements within braces & ↵Campbell Barton
indent. also indent case's within the switch (we already did both of these almost everywhere)
2013-06-05fix [#35613] Dopesheet, Graph Editor Trouble Selecting ChannelsCampbell Barton
2013-05-15Fix part of #35372: distorted strokes when painting zoomed out with a small ↵Brecht Van Lommel
brush size. Interpolated mouse coordinates should not get rounded to integers.