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-10UI: Cleanup - Remove Show Panel Header and BackgroundPablo Vazquez
A toggle for this is no longer required now that both header and background colors are RGBA (disabling Show Header is the same setting the alpha to 0). Thanks Brecht for reviewing!
2018-07-09UI: Remove 1 pixel gap between panel header and backgroundPablo Vazquez
2018-07-08Cleanup: rename 'ct' to 'len' for editorsCampbell Barton
2018-07-08Cleanup: abbreviate unsigned types (editors, wm)Campbell Barton
2018-07-06UI: Use flat triangle drawing for indicating submenusJulian Eisel
Left the RIGHTARROW_THIN icon in, even though it's not used in C code anymore. However add-ons may do (e.g. Amaranth does).
2018-07-06UI: disable broken horizontal properties editor alignment.Brecht Van Lommel
2018-07-01Merge branch 'master' into blender2.8Campbell Barton
2018-07-01Cleanup: right shift in interface codeCampbell Barton
2018-06-28GLRefactor: partially remove gl calls from source/blender/editors.Ray Molenkamp
This translates the gl calls to the new GPU_ wrappers from D3501. Given it's tedious and repetitive work, this patch does as much as it can with search + replace, the remainder of the gl calls will need to be manually dealt with on a case by case basis. This fixes 13 of the 28 failing editors when building without opengl. For the list of substitutions see D3502 Reviewers: brecht Differential Revision: https://developer.blender.org/D3502
2018-06-24Merge branch 'master' into blender2.8Campbell Barton
2018-06-24Cleanup: move UI context menus into own fileCampbell Barton
2018-06-12UI: Initial persistent floating redo panelCampbell Barton
This is the first step to moving redo out of the top-bar, see: T55039 - Support for floating panels in the ScrArea has been added. - A new region type RGN_TYPE_HUD is used for floating settings input. - Only one HUD should be visible at a time. - Currently HUD regions are only visible for 3D view and image space types. - There are currently some remaining glitches with hide/show that need further investigation.
2018-06-08WM: fix panel drag event handlingCampbell Barton
2018-06-08WM: fix panel drag event handlingCampbell Barton
2018-06-06UI: sub panel titles draw smaller and indented.Brecht Van Lommel
2018-06-03UI: add subpanel support.Brecht Van Lommel
In the Python API, any panel becomes a subpanel by setting bl_parent_id to the name of the parent panel. These subpanels can contain advanced or less commonly used settings.
2018-05-24Slightly smaller triangle collapse icon on panelsPablo Vazquez
2018-05-23UI: popup panel operator, as we have for menusCampbell Barton
2018-05-23Merge branch 'master' into blender2.8Campbell Barton
2018-05-23Cleanup: strip trailing space from interface filesCampbell Barton
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-04-22UI: Move ui_draw_anti_tria to UI_interface.hDalai Felinto
Using extern makes too easy to get a crash if the original function definition changed.
2018-03-30UI: Perf: Do not use implicit Attrib fill.Clément Foucault
2018-03-28UI: Perf: Group drawcalls inside ui_draw_panel_dragwidgetClément Foucault
16 Drawcalls > 1 Drawcall Do I need to say more?
2017-10-14Merge branch 'master' into blender2.8Campbell Barton
2017-10-14Cleanup: use const for eventsCampbell Barton
2017-09-27Merge branch 'master' into blender2.8Campbell Barton
2017-09-27Math Lib: Add non-clamped round_* functionsCampbell Barton
Replace iroundf with round_fl_to_int, add other types
2017-06-19Gawain API naming refactorCampbell Barton
Use consistent prefix for gawain API names as well as some abbreviations to avoid over-long names, see: D2678
2017-04-07OpenGL: use PRIM instead of GL enum for immBeginMike Erwin
Getting ready for a Gawain API change... Part of T49043
2017-04-07OpenGL: refactor ui_panel_category_draw_tabMike Erwin
changes: - exact vertex count - take bool (filled vs outline) instead of GLenum This function has some flexibility that is not currently used. I left that in.
2017-04-07OpenGL: refactor UI_draw_roundbox functionsMike Erwin
Each function takes a bool (filled vs outline) and a color. We already had multiple ways of passing color in; these are still here. Special variant for anti-aliasing. - took GLenum out of interface - removed UI_RB_ALPHA flag (only one place really used it) - use exact vertex count - removed redundant state changes (BLEND, LINE_SMOOTH)
2017-04-06Gawain: VertexFormat_add_attrib (function name change)Mike Erwin
See intern/gawain for the API change. Other files are updated to use the new name. Also updated every call site to the recommended style: unsigned int foo = VertexFormat_add_attrib(format, "foo", COMP_ ... )
2017-04-05Fix T50976: Blender UI problems with certain theme files.Bastien Montagne
Core of the issue was that some of our Theme colors are RGB-only, but were loaded as RGBA. Note that tracking all possible cases is pretty impossible, so we'll have to tackle those as they get reported am afraid.
2017-04-04cleanupMike Erwin
I started cleaning up UI_view2d_scale_get where the y scale was unused, then got carried away... - for loop scope - declare variables closer to where they are used - move early exits closer to function start - unsigned --> unsigned int
2017-03-21OpenGL: remove fdrawline & other helper functionsMike Erwin
Finally, fdrawline is no more! Part of T49043 & T49450
2017-02-24Opengl glaDrawPixels removal: interfaceClément Foucault
2017-02-23OpenGl immediate mode: remove imm_draw_lineLuca Rood
Replaced all calls to `imm_draw_line` by plain `immVertex2f` calls, and removed `imm_draw_line`, as that function was not supposed to exist in the first place, and causes unnecessary calls to `immBegin`/`immEnd`. Part of T49043
2017-02-20OpenGL immediate mode: interface_panel.cClément Foucault
2017-02-14Immediate Mode: area.c and UI_draw_icon_tri, ui_draw_anti_triaDalai Felinto
Note: This makes the jittering to not work :/ @merwin, would you know how to use gpuMatrixBegin2D for this case? I think it must be the reason behind the lack of jittering. But I couldn't get it to work (the 2D shader is asking for a 3D Matrix). Part of T49043
2017-02-10Remove most (maybe all?) remaining yellow textJulian Eisel
Decided to request the text color as argument for UI_fonstyle_draw functions, rather than keeping it being another state to keep track of.
2017-02-06OpenGL immediate mode: interface_draw.c (cont)Clément Foucault
Replaced GL_POLYGON in various places. Ported UI_draw_roundbox_unfilled
2017-02-05fix most UI text colorMike Erwin
There are still many places to fix. I'll miss the bright yellow! This commit also uses the new BLF_default function where possible. Part of T49043 since we call glColor less often.
2016-10-10blender 2.8; OpenGL. ui_panel_category_draw_tab with immediate APIMike Erwin
Reviewers: dfelinto, Severin, merwin Reviewed By: merwin Tags: #bf_blender_2.8, #opengl_gfx Maniphest Tasks: T49043 Differential Revision: https://developer.blender.org/D2281
2016-09-05UI: Ctrl+Tab and Ctrl+Shift+Tab to cycle through space context "tabs"Julian Eisel
In User Preferences, Properties Editor and toolshelf, Ctrl+Tab and Ctrl+Shift+Tab now activates the next or previous space context (or category in case of toolshelf tabs), respectively. For Properties Editor such functionality was completely missing, only toolshelf allowed cycling using ctrl+mousewheel (or only mousewheel while hovering tab region). Ctrl+Tab and Ctrl+Shift+Tab are common web browser shortcuts, so they're a reasonable choice to go with. Reaching the first/last item doesn't cause the cycling to stop, we continue at the other end of the list then. (I didn't add this to Ctrl+Mousewheel toggling in toolshelf since I wanted to keep its behavior unchanged.) We could get rid of (Ctrl+)Mousewheel cycling in toolshelf, but this may break user habits. The cycling happens using a new operator, UI_OT_space_context_cycle, for toolshelf tabs it's hardcoded in panel handling code though. Generalized rna_property_enum_step a bit and moved it to rna_access.c to allow external reuse. Reviewed By: venomgfx Differential Revision: https://developer.blender.org/D2189
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-06-09Flat shading for basic shaderAlexander Romanov
The purpose of the patch is to replace deprecated glShadeModel. To decrease glShadeModel calls I've set GL_SMOOTH by default Reviewers: merwin, brecht Reviewed By: brecht Subscribers: blueprintrandom, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1958
2016-04-22BLF: use float vector passing color argsCampbell Barton
2016-02-23Fix memory leak in panel category updateKévin Dietrich
2016-01-23OpenGL: call glLineWidth less oftenMike Erwin
Each LINES draw call is now responsible for its own line width. No need to set it back to its 1.0 default after every draw. This eliminates half our calls to glLineWidth , similar to last week’s work on glPointSize.