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-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-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-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-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-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-13Add red alert in UI controls for datablock pointer propertiesAlexander Romanov
2017-03-26Fix: Use "round" instead of "floor" in snapping UI to pixelsraa
2017-03-26Fix: Button's label can be NULLraa
2017-03-18Cleanup: use return args last and 'r_' prefix.Campbell Barton
2017-03-17Various icon adjustmentsraa
2017-01-20Fix/cleanup stupid check on array of char being non-NULL pointer...Bastien Montagne
Reported by coverity scan.
2016-11-28UI: Add 'x' icon to text buttons to clear contentJulian Eisel
This is useful e.g. for search buttons to quickly clear the filter string. We might want to make this optional for python scripts.
2016-09-22RNA/UI: Allow displaying in tooltip why RNA property isn't editableJulian Eisel
This commit allows RNA properties to return additional info on their editable state which may then be displayed in tooltips. To show how it works, it also adds some info for the editable check of proxies. For generally un-editable properties or properties of a linked data-block, RNA returns default strings. | {F362785} | {F362786} | {F362787} | Reviewed by brecht, thanks! Differential Revision: https://developer.blender.org/D2243
2016-09-19Various cleanups related to button lockingJulian Eisel
* Rename uiBut.lockstr to disabled_info * Remove unreachable code * Replace duplicated check with assert * Replace overly ambitious check with assert * Add comments
2016-09-19Cleanup: Completely replace/remove uiBut.lockJulian Eisel
Old leftover from pre 2.5 days. Now handled through UI_BUT_DISABLED button flag.
2016-07-14Cleanup: comment blocksCampbell Barton
2016-06-29UI: prevent softrange from becoming nanCampbell Barton
Quiets assert
2016-06-27Docs: arg namesCampbell Barton
2016-03-24Driver Keyframing: Some tweaks to make inserting keyframes on Driver ↵Joshua Leung
F-Curves easier Now, when trying to insert a keyframe on a driven property (using IKEY, or with autokeying enabled), the keyframes will get created on the Driver's F-Curve (instead of creating a new FCurve that goes into the active action, but will never do anything). Furthermore, the x-value of the new keyframe will be the current result of the driver expression. Why/Motivations: This way, it becomes easier to create corrective drivers, as you can position all the targets the driver depends on, then adjust the driver value until it does what you need, and then you keyframe that value to bake it into the Driver F-Curve (in effect, "training" the computer how to behave in that case). Usage Notes: * In practice, that particular workflow is still quite clunky to achieve, due to some quirks of how the driver system and the UI widgets interact. Specifically, you'll need to disable/mute the driver before trying to edit the setting (to prevent the driver from immediately resetting the value - before even autokey fires!). However, if you're using the Graph Editor to preview/monitor/manage the keying process, you'll then want to re-enable the driver before changing the targets, so that you can see how much of a change you'll want to be applying! * The warning about editing driver values may need to be disabled or selectively knocked out. I had it disabled while testing this functionality, but it's actually harmless in its current state (if just a bit annoying).
2016-03-15Fix T47780: Icons don't update in floating panelsCampbell Barton
2016-03-07Fix T47691: Missing redraw w/ pop-up dialogsCampbell Barton
Search buttons would overwrite existing callbacks, even when they weren't needed. Causing missing updates for search buttons in pop-ups.
2016-03-05Cleanup: unnecessary comma useCampbell Barton
2016-03-02Fix crash accessing nodes search menuSergey Sharybin
Was caused by d49985c.
2016-03-02UI: Show categories in operator search popupCampbell Barton
Gives better context especially when operators have generic names.
2016-03-02UI: Add search-create callbackCampbell Barton
Needed to support alternate search UI's, no functional changes.
2016-02-29Cleanup: Duplicated functionJulian Eisel
wmOrtho2_region_pixelspace and wmOrtho2_region_ui were doing exact same thing since rBSa86482f81cf3.
2016-02-23Fix button display clamping valuesCampbell Barton
Displaying a button would clamp the value if the button was outside the range. This could be OK in some cases, however it's problematic with object dimensions which would re-scale objects on showing the panel. Add `ui_but_update_edited` when its OK to modify the value.
2016-02-02UI: update dynamic tipsCampbell Barton
Useful for progress ETA to continuously update. This adds API option not to activate new regions GL state which isn't needed in many cases.
2016-02-02Fix T47256: Progress bar doesn't update w/ mouse-overCampbell Barton
2016-01-29Fix i18n-related points in T47265 - mostly, fix non-translated items in ↵Bastien Montagne
enum-search popup menu.
2016-01-17Cleanup: spellingCampbell Barton
Also use doxy formatting for warning/note.
2016-01-17WM: remove unnecessary context argument from WM_report, no good reason to ↵Brecht Van Lommel
have it.
2015-12-31Cleanup: Py API namingCampbell Barton
Use BPY_execute_* prefix for all Python execution commands
2015-12-03Fix FileBrowser 'context-editing' properties shortcuts not being displayed ↵Bastien Montagne
in tooltip. Also related to T46918.
2015-11-24OpenGL: clean up use of old extensionsMike Erwin
2015-11-23Cleanup: shadowing (interface)Campbell Barton
2015-11-15UI: support cycling callback for non RNA menusCampbell Barton
2015-11-10UI: support editing >400 length text buttonsCampbell Barton
RNA could define strings as dynamically sized, but the interface ignored this and clamped them to UI_MAX_DRAW_STR. Fixes T46734, also fixes possible pasting non-utf8 text into utf8 buttons.
2015-11-06New uialign code, based on 2D positions of widgets.Bastien Montagne
This new code fixes a tons of issues with previous one, which basically was epic-failing in many non-basic cases (especially mixed columns and rows with column-dominant layout). It basically no more relies over order of buttons declaration in the uiBlock, instead it finds and stores spatial neighbors and uses that data to compute needed stitching. See code comments for details. New code seems to be roughly ten times slower than old one (for complex grouped layouts), that is, about a few microsecconds per alignment group - this remains reasonable. Also, ui-align code becomming rather big in itself, it was separated in own new `interface_align.c` file. Reviewers: campbellbarton, severin Reviewed By: campbellbarton, severin Differential Revision: https://developer.blender.org/D1573
2015-10-26Fix T46537: UV Image Editor. UV Sculpt toggle button doesn't show hotkey ↵Bastien Montagne
label when active. Poll function of that keymap was slightly... agressive.
2015-10-26Fix broken comment about our WM progress report for python (its not a ↵Bastien Montagne
progress bar at all).
2015-10-17Cleanup: warningsCampbell Barton
- remove NULL checks for args already set as ATTR_NONNULL. - double promotion.
2015-10-16Fix popup menu glitch, scrolling at high dpiCampbell Barton
Popups were clamped be screen-margin, then clipped by UI_POPUP_MENU_TOP, causing regular popups not to have enough room & add scroll buttons.
2015-09-18Fix UI crash entering very long stringsCampbell Barton
Strings exceeding UI_MAX_DRAW_STR weren't null terminated.
2015-09-17Fix T46134: units degrees increment are too smallCampbell Barton
The user interface was ignoring the precision step size for degrees, making all rotation inputs drag by a 100th of a degree. Now use a 10th of a degree instead.
2015-09-15Fix T46113: Color picker erratic outside 0-1 rangeCampbell Barton