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
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.
2013-04-18View2D could potentially divide stuff by zero, giving bad matrices.Ton Roosendaal
2013-04-18Bug fix #34943Ton Roosendaal
With extreme narrow scaled editors, the slider/mask code in View3d could deliver zero sized or invalid window matrices. Needs confirmation from Sergey if it works :)
2013-03-19add BLI_rcti,f_recenter()Campbell Barton
fix for uninitialized variable use in radial_control_get_properties() and bad cast in bpy api's foreach_parse_args()
2013-03-18code cleanupCampbell Barton
2013-03-18Merge of the PyNodes branch (aka "custom nodes") into trunk.Lukas Toenne
PyNodes opens up the node system in Blender to scripters and adds a number of UI-level improvements. === Dynamic node type registration === Node types can now be added at runtime, using the RNA registration mechanism from python. This enables addons such as render engines to create a complete user interface with nodes. Examples of how such nodes can be defined can be found in my personal wiki docs atm [1] and as a script template in release/scripts/templates_py/custom_nodes.py [2]. === Node group improvements === Each node editor now has a tree history of edited node groups, which allows opening and editing nested node groups. The node editor also supports pinning now, so that different spaces can be used to edit different node groups simultaneously. For more ramblings and rationale see (really old) blog post on code.blender.org [3]. The interface of node groups has been overhauled. Sockets of a node group are no longer displayed in columns on either side, but instead special input/output nodes are used to mirror group sockets inside a node tree. This solves the problem of long node lines in groups and allows more adaptable node layout. Internal sockets can be exposed from a group by either connecting to the extension sockets in input/output nodes (shown as empty circle) or by adding sockets from the node property bar in the "Interface" panel. Further details such as the socket name can also be changed there. [1] http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes [2] http://projects.blender.org/scm/viewvc.php/trunk/blender/release/scripts/templates_py/custom_nodes.py?view=markup&root=bf-blender [3] http://code.blender.org/index.php/2012/01/improving-node-group-interface-editing/
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-02-21Compile fixes for recent code cleanups:Thomas Dinges
* M_PI was not declared for MSVC.
2013-02-21use radians for BLF_rotationCampbell Barton