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
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-10-17Cleanup: use 'e' prefix for enum typedefsCampbell Barton
Convention was only followed loosely, apply to DNA where changes aren't likely to conflict. (Skipped ModifierType for eg).
2017-10-16WM: refactor gestures for use as toolsCampbell Barton
Border and circle select wait for input by default. This commit uses bool properties on the operators instead of magic number (called "gesture_mode"). Keymaps that define 'deselect' for border/circle select begin immediately, exiting when on button release.
2017-10-16Cleanup: modal operator border callback namesCampbell Barton
Use same convention as all others. Remove 'select' since these are used for zoom as well.
2017-10-14Cleanup: use const for eventsCampbell Barton
2017-10-12Fix T52999: floating (popup) panels/menus could jump around screen in some ↵Bastien Montagne
cases. Would happen during panel's refresh drawing, if drawing code had to adjust final panel position compared to the initial one computed based on the mouse coordinates, and user had dragged the floating panel around. Issue fixed by adjusting stored mouse coordinates once final panel position is known, such that they would directly generate those coordinates. that way, the basic offset applied to those stored mouse coordinates during panel dragging is valid, and recreating panel based on those won't make it jump in screen. Note that panel will still jump in case user dragged it partially out of view - we could prevent that, but imho it's better to keep that behavior, since redraw can generate a popup of different size, which could end up with a totally out-of-view one... Hopefully this fix does not break anything else!
2017-10-06Cleanup: styleCampbell Barton
2017-10-05Fix T52998: disabled menu entries responding to key shortcuts.Brecht Van Lommel
2017-09-27Math Lib: Add non-clamped round_* functionsCampbell Barton
Replace iroundf with round_fl_to_int, add other types
2017-09-20UI: fullstop at end of tooltipsCampbell Barton
Allows for multiple sentences not to look strange. Convention not to include in RNA remains.
2017-09-18Add some security checks against future bad float UIprecision values.Bastien Montagne
This commit and previous one should be backported to 2.79a should we release it.
2017-09-18Cleanup: use clamped rounding functionsCampbell Barton
2017-09-17UI: avoid int cast before clamping number inputCampbell Barton
Values outside int range would overflow.
2017-09-14Fix failure in our UI code that could allow search button without search ↵Bastien Montagne
callbacks, leading to crash. Related to (exposed by) T52735, fixes the reported crash but not the underlying issue. To be backported to 2.79a should we do one.
2017-09-07Cleanup: remove goto'sCampbell Barton
2017-09-07UI: fix memory leak when copy-to-selected failedCampbell Barton
2017-08-29Support Copy To Selected and Alt-Click for F-Curves in the curve editor.Alexander Gavrilov
This affects the curve display color setting, but is really intended for future per-curve options. The id_data reference in the created rna pointers refers to the object even if the curve is actually owned by its action, which is somewhat inconsistent, but the same problem can be found in existing code. Fixing it requires changes in animdata filter API.
2017-08-29View2D: function to get view to region matrixCampbell Barton
2017-08-28Fix T51400: Pasting hex code failsCampbell Barton
The # prefix is supported, the button didn't give enough space to paste it. D2812 by @candreacchio
2017-08-22Fix T52466: Silence search for button_context menu type.Thomas Beck
We were showing "search for unknown menutype WM_MT_button_context" messages in terminal which were not helpful for users, so now they are disabled. To be backported to 2.79
2017-08-12Fix width estimation for buttons with short labels in pie menusAleksandr Zinovev
Differential Revision: https://developer.blender.org/D2781 To be backported to 2.79 branch
2017-08-11Pie menu's sub-rows ignore 'EXPAND' flagAleksandr Zinovev
Regression, to be backported in 2.79.
2017-08-11Cleanup: whitespaceCampbell Barton
2017-08-08Fix fixed width box layoutsAleksandr Zinovev
Regression, to be backported in 2.79.
2017-08-08Fix width estimation for empty layouts in pie menusAleksandr Zinovev
2017-08-01Fix multi-units drawing re precision handling.Bastien Montagne
This is still far from prefect, but yet much better than what we had so far (more consistent with inheritent precision available in floats). Note that this fixes some (currently commented out) units unittests, and requires adjusting some others, will be done in next commit.
2017-07-31Fix two issues with recent changes to number display while editing them.Bastien Montagne
* Numbers with units (especially, angles) where not handled correctly regarding number of significant digits (spotted by @brecht in T52222 comment, thanks). * Zero value has no valid log, need to take that into account!
2017-07-28Replace magic numbers with deprecated namesCampbell Barton
The names aren't meaningful but means it wont accidentally use valid names. Also remove textured-font setting
2017-07-28Cleanup: clear deprecated UI flagsCampbell Barton
Also adds cursor-lock flag, to be used in next commit.
2017-07-28Fix potential 'divide-by-zero' in our UI fitting code.Bastien Montagne
Reported by coverity, better fix even if highly unlikely to happen...
2017-07-28Fix T52208: Using UI_BUT_REDALERT flag for UI_BTYPE_KEY_EVENT buttons ↵Bastien Montagne
crashes Blender. but pointer was not assigned in that case...
2017-07-27Fix T51776: Make sure button icons are updated on Ctrl-ScrollWheelJeff Knox
2017-07-27Fix button text overlapping with shortcut text in popupsJulian Eisel
The purpose of the keymap strings is probably for un-embossed menu items like seen in most pulldowns. I can't see a reason for also adding that string for regularly drawn buttons within popups, we don't add it anywhere else in the UI either. So this commit makes sure shortcut strings are only added to buttons that are drawn like pulldown-menu items.
2017-07-27Minor code style correctionsJulian Eisel
2017-07-27Fix Label colors in popupsAleksandr Zinovev
2017-07-27Fix: use click style if a pie was spawned by release or click eventAleksandr Zinovev
2017-07-21Fix strict compiler error after recent UI changesSergey Sharybin
2017-07-18Fix bad loss of precision when manually editing values in numbuttons.Bastien Montagne
While drawing nice 'rounded' values is OK also for 'low precision' editing like dragging and such, it's quite an issue when you type in a precise value, validate, edit again the value, and find a rounded version of it instead of what you typed in! So now, *only when entering textedit of num buttons*, we always get the highest reasonable precision for floats (and use exponential notation when values are too low or too high, to avoid tremendous amounts of zero's).
2017-07-11Fix T49034: multi-drag crashes when UI forces exitCampbell Barton
2017-07-02Fix T51772: double undo entry for color picker editing.Brecht Van Lommel
2017-06-26Building w/o Python works againCampbell Barton
2017-06-23Fix T51845raa
2017-06-20Fix: Icon alignment for scaled pie buttons with no textraa
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.
2017-05-09Fix (unreported): Crash if a right click is performed on an image datablock ↵Thomas Beck
(open btn f.e.). Only access/insert the button_pointer if it's not null...
2017-05-05Revert "Add red alert in UI controls for datablock pointer properties"Julian Eisel
This reverts commit f5bc8ad4ce87165fc0648f1cd8c0ae1fb5f07281. We agreed there needs to be a better solution for this, see comments in rBf5bc8ad4ce87165.
2017-04-29Implementation of custom python entries in all right click menusThomas Beck
Hi Guys, as one of my clients needs the possibility to have custom menu entries in the general right click menu (all over Blender: in the node editor, properties, toolbars,..) I talked with Campbell about expanding our hard coded menu a bit. This is the outcome. As I only need those two, I support currently a button_prop and a button_pointer. {F540397} I tested the changes with a custom script where I added a custom entry and executed an operator on click - it seems to work exactly how it's intended to. The script: {F540435} As I'm not too experienced in rna stuff I would really appreciate any review. Thanks very much Campbell for his open ears & help on this issue! Reviewers: campbellbarton, mont29 Reviewed By: campbellbarton, mont29 Subscribers: sybren, mont29 Tags: #addons Differential Revision: https://developer.blender.org/D2612
2017-04-20D2607: Switch eye dropper to use linear color space internallyStefan Werner
This switches the internal color representation of the eye dropper from display space to linear. Any time a linear color is requested and the color is picked from a linear object, the result is now precise to the bit as the color gets patched through directly. Color space conversion now only happens when a color is picked from non-linear display space objects or when the color is requested to be returned in non-linear space. In addition, this patch changes the DifferenceMatte node to interpret a tolerance of 0.0 to accept colors that are identical bit by bit, as apposed to simply refusing all colors.
2017-04-13Add red alert in UI controls for datablock pointer propertiesAlexander Romanov
2017-04-11Fix: width of UILayout.prop_enum() buttonsraa