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
2015-06-16Cleanup: styleCampbell Barton
2015-06-15Revert "Revert "Disable key accelerators for splash screen""Campbell Barton
This reverts commit 7f3dcbe17feccb99abbdbc3aea83189696d97391. Please check with authors first, this bug was already fixed since RC1.
2015-06-15Revert "Disable key accelerators for splash screen"Thomas Beck
This reverts commit 7b0c327b943d4c4a3b212844ea2d4dfcc77f0556. The problem with this commit is that the "move to layer" functionality by hitting M,1 f.e. didn't work anymore... Campbell, would be great if you could look into this again, as I'm not experienced in this specific region..
2015-06-09Disable key accelerators for splash screenCampbell Barton
2015-06-08Alternative fix copying windows from popup dialogsCampbell Barton
It could still crash if the window was freed and another was activated. see T44688.
2015-06-02Fix operator exec /w popups that close the windowCampbell Barton
Related to T44688, note supporting this case isn't so nice, but seems it can be made to work.
2015-06-01template ID previews: quick fix for buttons region overlapping the search buttonInes Almeida
2015-06-01Fix T44747: Drag toggle /w nodes (glitch)Campbell Barton
It was possible to perform actions while performing a drag-toggle.
2015-05-29UI cleanup: removing if, condition was already testedInes Almeida
2015-05-15Correct recent cleanupCampbell Barton
Removed call which was still needed
2015-05-15Fix some issues found by Coverity ScanJulian Eisel
Some of them are just brain dead code, some are potential bugs.
2015-05-04Cleanup: wrapped function indentationCampbell Barton
2015-04-07Revert Sticky Keys (and everything related to that)Julian Eisel
Our current keymap doesn't give us enough room to make such changes in the event system. To fix small issues caused by this, we would need to do drastic changes in Blender's keymaps and internal handling. It was worth a try, but it didn't work. I can write down a more descriptive statement in a few days, but for now I need a break of this stuff.
2015-04-03Sticky Keys backendJulian Eisel
Design task: T42339 Differential Revision: D840 Initial implementation proposal: T41867 Short description: With this we can distinguish between holding and tabbing a key. Useful is this if we want to assign to operators to a single shortcut. If two operators are assigned to one shortcut, we call this a sticky key. More info is accessible through the design task and the diff. A few people that were involved with this: * Sean Olson for stressing me with this burden ;) - It is his enthusiasm that pushed me forward to get this done * Campbell and Antony for the code and design review * Ton for the design review * All the other people that gave feedback on the patch and helped to make this possible A big "Thank You" for you all!
2015-03-24UI: remove UI_BTYPE_SEARCH_MENU_UNLINKCampbell Barton
Internal change only, use UI_BTYPE_SEARCH_MENU with an unlink flag instead. They are really the same button type, one just happens to have the option to unlink.
2015-03-19Cleanup: spelling grey -> grayCampbell Barton
2015-03-19Revert part of recent color-management commitCampbell Barton
This adds back rgb_to_grayscale, not all color is managed or depends on the current loaded blend file's CM options. Noted in comments that this is only to be used outside the CM pipeline.
2015-03-17Part 2 of D1082 by Troy Sobotka, remove our functions that do lumaAntony Riakiotakis
calculations and use the OCIO one instead.
2015-03-02Fix missing newline in the button cycle error printSergey Sharybin
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-20UI: cleanup UI_fontstyle_string_width, UI_draw_stringCampbell Barton
Both were maked as temp, but used often. Now pass uiFontStyle to both, rename UI_draw_string to UI_fontstyle_draw_simple, since its a variant of UI_fontstyle_draw that skips shadow, align... etc.
2014-12-10UI: add Shift-Drag to multiselect expanded enum items too.Bastien Montagne
Differential Revision: https://developer.blender.org/D928
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-16UI: fix for recent menu flipping commitCampbell Barton
2014-11-15Cleanup: remove unused redraw flagCampbell 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-11-10Fix T42221: 'Shadow Width' influences tooltip sizeCampbell Barton
Positioning of popups was using shadow width for placement, could give some quite odd results.
2014-11-09Cleanup: remove unused UI_SHIFT_FLIPPED (2.4x toolbox)Campbell Barton
2014-11-06Fix T42208 color pickers are coupled.Antony Riakiotakis
Decouple color picker hsv data from the whole block. Basically, each color picker now takes care of creating its own color picker role. For this bug report it can be seen that probably HSV is not the best space for gamma/lift/gain workflow because it is bounded at 1.0 but this is a separate issue.
2014-10-28Fix T41041: 'Delete keyframe' removes markers tooCampbell Barton
Operators that trigger UI events (but nothing else) were using 'CANCELLED' making it impossible to tell if an invoke function failed, or opened a menu.
2014-10-14Pie menus:Antony Riakiotakis
* Only use last key for pies if it hasn't been released already * Confirm threshold is now measured as distance after regular threshold. zero disables. * Only display the confirm threshold if there's a valid direction (mouse is after threshold). * Calculate confirm threshold taking recentering into account
2014-10-13Filter out pie spawn button events.Antony Riakiotakis
The reason being, with the current system of quick selection, it's possible to spawn an operator after confirmation, especially for cases with modifier buttons.
2014-10-13Some corrections to the pie spawning code to account for nested pies.Antony Riakiotakis
2014-10-13Pie menus: Confirm thresholdAntony Riakiotakis
This commit adds a confirm threshold property to pie menus. Basically, this will confirm the pie menu automatically when the distance from the center of the pie exceeds that threshold without a need to release the pie button. The confirm threshold will only work if it is larger than the pie threshold. The confirmation actually occur when the mouse stops moving, to allow multiple pie menus to be better linked together, (see below) This functionality also facilitates the ability for chained pie menus by dragging. Basically, a pie menu item can be a call_menu_pie operator and the new pie menu will still use the original pie menu release event for confirmation. This should allow for quick, gesture based navigation in pie menu hierarchies (going back in the hierarchy is still not supported though) There will be a demonstration pie in the official add-on soon
2014-10-09Fix T41639, hierarchical pie menu - popup interaction is buggy.Antony Riakiotakis
Basically, this commit changes pie menu click interaction so that confirmation is done on left click release instead of press. This allows dragging on the pie menu to select different items, but most importantly, there should be no left over click events passed on to subsequent menus/pies. This means that pie menus should now be able to spawn popups safely. Also, left clicking to spawn a second pie menu now sets that menu to click style by default allowing for better interaction between hierarhies of pie menus.
2014-09-10Fix two bugs with searchbox UI items.Bastien Montagne
First one, reported by Sergey, was searchbox not closing when validating it (enter or LMB click) without any active item (we need to enable escapecancel here, to close menu too). Second one was SEARCH_MENU_UNLINK variant not unlinking at validation when no active item. Thanks a bunch to Campbell for help here!
2014-09-10UI: Disable operator search menu setting an unset state key key-inputCampbell Barton
2014-09-10Partial fix for T41749Campbell Barton
Tool-tips and header-text used a different pixel alignment from the rest of the UI. This causes blurry text with multi-sample with NVidia. Other text still needs the issue resolved (View3d info for eg)
2014-09-10WM: Add utility wmOrtho2_*** funcsCampbell Barton
Currently there are inconsistencies with pixel alignment. but this commit has no functional changes. - wmOrtho2_region_ui for UI/Text. - wmOrtho2_region_pixelspace for 2D drawing. - wmOrtho2_pixelspace - when the region isn't used.
2014-08-24Fix T41548: Menu pulldown button behaves incorrectly on click if menu shadow ↵Bastien Montagne
width is set to 0 in theme prefs. This is more like a workaround actually, we use a fixed 'margin' for height in case of search menus, instead of using shadow width (which gave the bug with low values, and insane margins with big ones). Note root of the issue is that if 'top' margin is too small, the first entry of the search menu gets activated before the 'opening' click is released. This means that button will get the KM_RELEASE event, and immediately quit (see interface_handlers.c:7945, ui_handle_menu_button()).
2014-08-13Maybe slightly controversial pie commit:Antony Riakiotakis
Make pie menu item placement touch the radius from the internal side of the buttons rather than placing on the center on the cirtcle. This allows us to get rid of the separate visual angle property, also allows for tighter placement of pies with a smaller radius without easily overlapping. Also pie menu title now always appears above the threshold indicator.
2014-08-13Correct missing new line in the debug printSergey Sharybin
2014-08-13Align pie menu title on center.Antony Riakiotakis
2014-08-11Pie Menus C code backend.Antony Riakiotakis
This commit merges the code in the pie-menu branch. As per decisions taken the last few days, there are no pie menus included and there will be an official add-on including overrides of some keys with pie menus. However, people will now be able to use the new code in python. Full Documentation is in http://wiki.blender.org/index.php/Dev:Ref/ Thanks: Campbell Barton, Dalai Felinto and Ton Roosendaal for the code review and design comments Jonathan Williamson, Pawel Lyczkowski, Pablo Vazquez among others for suggestions during the development. Special Thanks to Sean Olson, for his support, suggestions, testing and merciless bugging so that I would finish the pie menu code. Without him we wouldn't be here. Also to the rest of the developers of the original python add-on, Patrick Moore and Dan Eicher and finally to Matt Ebb, who did the research and first implementation and whose code I used to get started.
2014-08-05Macros: replace UNPACK#OP -> UNPACK#_EX, allow suffixCampbell Barton
2014-08-03Fix for glitch with menus not reliably setting an active item (D674)Campbell Barton
When menus are clamped to the window bounds, its was possible not to have an active menu-item under the mouse, Making Ctrl+S,Enter not completely reliable. Changes needed to support this are: - menu item is activated on popup menus (to avoid relying on mouse-over) - moving mouse away from menu items only de-activates when over a new menu-item. - Mouse clicks are ignored if they are not directly over the menu item.
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-07UI: tooltips, blurry and incorrect rhs-padding in recent updateCampbell Barton
D634 by Severin
2014-07-01Correct enum size incase compiler makes enum signedCampbell Barton
2014-06-27UI: use cursor x-location for tooltip placement (T37478)Campbell Barton