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-09-15Fix T46113: Color picker erratic outside 0-1 rangeCampbell Barton
2015-09-05Fix T45944: Ctrl+Wheel to cycle values failes in toolshelfJulian Eisel
Now, ctrl+wheel for cycling tabs is passed to hovered button if it supports cycling values (RNA menus, color/row/number/slider buttons, list boxes) This might feel a bit glitchy if ctrl+wheel is used to cycle tabs and in newly opened tab, a button with cycling support is under the mouse, which will get mouse input from this point on instead of region. Think this is still better than old behavior.
2015-08-18UI: avoid subtracting shadow from winrctCampbell Barton
For popup interactions we need to know if events are in the region or not, however subtracting the shadow isn't so reliable, since its not always added to all sides of a popup. Instead, get the winrct value from a popup using the block rect, otherwise the winrct as-is.
2015-08-10UI drag&drop: make code able to free dragpoin if needed.Bastien Montagne
Only for image and strings for now. Needed for incomming filebrowser work.
2015-08-02parenthisize macro args to avoid errorsCampbell Barton
2015-05-11Expose PreviewImage & custom icons to py API.Bastien Montagne
This commit mainly: * Exposes PreviewImage struct in RNA, including ways for user to set images data. * Adds a new kind of PreviewImage, using a file path and IMB_thumb to get image. * Adds a new kind of custom icon using PreviewImage, unrelated to ID previews system. * Adds a python API (utils.previews) to allow python scripts to access those custom previews/icons. Note that loading image from files' thumbnails is done when needed (deferred loading), not when defining the custom preview/icon. WARNING: for release addons who would want to use this, please keep it to a strict minimum, really needed level. We do not want our UI to explode under hundreds of different flashy icons! For more info, see also the release notes of Blender 2.75 (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons) and the example/templates featured with Blender. Patch by Campbell (ideasman42), Inês (brita) and Bastien (mont29). Differential Revision: https://developer.blender.org/D1255
2015-05-04Cleanup: wrapped function indentationCampbell Barton
2015-04-21Add eyedropper for selecting object & obdataJulian Eisel
In addition to the unlink icon to clear a value, When cleared, show an eyedropper to select objects or object-data (was already available via the EKey).
2015-03-28Cleanup: redundant struct declarationsCampbell Barton
2015-03-26IME: Minor API cleanupSeverin
2015-02-11UI: add optional tip callback to uiBut, and use it for per-item tooltips in ↵Bastien Montagne
UIList. When defined, uiBut->tip_func is called when button's tip is generated. This allows for advanced, dynamic generation of tooltips. For now, only used by UIList, which can now optionaly use a given string property of each item for its tooltip. Thanks to Campbell for the reviews!
2015-01-21UI: support alt+wheel for expanded enumsCampbell Barton
2015-01-14UI: Eyedropper for view-depthCampbell Barton
Currently this is mainly useful for picking camera DOF depth. - EKey over a distance field prompts you to pick a depth from the camera. - WKey (Specials menu) to pick from the 3D view (when the active camera's selected).
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-07Input Method Editor (IME) support for text buttonsSeverin
Original patch by @random (D765) with some minor work done by @campbell and me. At this place, I'd like call out a number of people who were involved and deserve a big "Thank you!": * At the first place @randon who developed and submitted the patch * The Blendercn community which helped a lot with testing - espacially * @yuzukyo, @leon_cheung and @kjym3 * @campbellbarton, @mont29 and @sergey for their help and advises during * review * @ton who realized the importance of this early on and asked me for * reviewing We are still not finished, as this is only the first part of the implementaion, but there's more to come!
2014-11-11UI: Cleanup, replace enum with functionCampbell 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-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-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-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-09-18Fix T41708, active palette indicator not refreshing when clickingAntony Riakiotakis
Issue, after a lot of blood sweat and tears, was found in ui_but_update_from_old_block, where we restore a button to its old values when possible. The problem here is that a1 and a2 are not really meant to store temporary variables, because they tend to get overriden and palette selection is one of those temporary states. Instead, we now store the position of each button in the palette in a2 and pointer to the palette in the customdata pointer of each button and use that to test if it's active. The positions won't change when clicking so we are guaranteed that the old button won't override the new one with garbage. It's still hacky but it is better than testing button types when copying old values.
2014-08-14Pie menus:Antony Riakiotakis
If user drags away from initial position, menu changes to drag style and returning to that position won't remake the menu click-style. Allows to use the threshold indicator to cancel the pie.
2014-08-14Deactivate last active button for pie menu popups.Antony Riakiotakis
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-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-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-23Fix for mixup in startup.blend data init when userprefs.blend was missingCampbell Barton
Rename UI_init_userdef_factory to BLO_update_defaults_userpref_blend This closely matches BLO_update_defaults_startup_blend so makes sense for them to be together.
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-06-14UI: Add support for popups to refresh their layput (D578)Campbell Barton
This is needed for popups to chance state once activated, currently it makes use of operators `check` callback, after values are modified, as the file selector does already.
2014-06-13Code cleanup: UI, unnecessary float/int conversionCampbell Barton
2014-05-02UIL: Dragging popups wasn't updating safe-areasCampbell Barton
2014-04-17Code cleanup: use boolsCampbell Barton
also rename BLI_omp_thread_count -> BLI_system_thread_count_omp
2014-04-17BGE - button for deactivate sensors, controllers and actuatorsJorge Bernal
This change introduces a new checkbox to deactivate the sensors, controllers and/or actuators. It is useful during the development phase to avoid delete sensors, controllers or actuators if you want to test something new. NOC: The wiki page is being updated (the images mostly), but the feature is already in the 2.71 release log. {F61628} Reviewers: moguri, dfelinto, campbellbarton, dingto, #user_interface, billrey Reviewed By: moguri CC: billrey Differential Revision: https://developer.blender.org/D16
2014-04-12Slight modification to previous color wheel tweak.Antony Riakiotakis
Do not use compat version, we do not have a valid previous value really to use here.
2014-04-02UI: support for dragging popups title areaCampbell Barton
2014-03-14Fix Circle picker not liking linear color properties much. Again, visualAntony Riakiotakis
result for picked color was different from what was displayed on color wheel under the cursor.
2014-03-12HSL color wheel implementation.Antony Riakiotakis
This is a standard Hue - Saturation - Lightness model (see for instance entry on wikipedia here: https://en.wikipedia.org/wiki/HSL_and_HSV) Note though the difference between HSV and HSL saturation, which are not the same. The advantage of having this color selection scheme is that artists can select shades and tints of a color easily by using the lightness slider. Also colors are arranged on (approximated) perceived lightness on the color wheel. Beware, Old files opened with this preference saved will crash! Reviewers: sergey, brecht, campbellbarton Differential Revision: https://developer.blender.org/D385
2014-02-25Fix T38809: regression, text cursor offset in number buttonsCampbell Barton
Use the same offset for all edit-buttons now.
2014-02-13UI: split ui_popup_menu_memory into get/set functions and store as uintCampbell Barton
2014-02-13Code cleanup: remove unused button aspectCampbell Barton
2014-02-10UI: refactor menus to remove menus encoded in stringsCampbell Barton
On every redraw a single unopened dropdown boxe would translate and convert every EnumPropertyItem into a string, then decode every item, and search those items to find the name of the button to draw. Replace this with a custom menu callback for RNA enums, tooltips for enums now show too.
2014-02-08UI: multi-drag number button editingCampbell Barton
clicking and dragging down edits multiple number buttons at once. (patch D270)
2014-02-08UI: split ui_button_execute_do into begin/endCampbell Barton
2014-02-08UI: butstore API to generalize button storage for modal handlersCampbell Barton
2014-02-06Fix T38516: crash when using color picker from redo panel.Brecht Van Lommel
2014-02-05Change confusing check discovered while working on HCL color wheel:Antony Riakiotakis
COLOR widgets never get created with UI_GRAD_V_ALT values. This is intended for HSVCUBE color sliders only so reverting this to old value before it was substituted with a define, which was -1. There's one case where COLOR buttons get defined with a1 value different than -1 which is in ui_def_but_rna. There the step value of the RNA property is used. However, that meant that if step equaled to 9, which is UI_GRAD_V_ALT value (unlikely) or if UI_GRAD_V_ALT was changed to 10 in future, or we added check for e.g. UI_GRAD_L_ALT which is 10 in HCL branch, color widget would not get a color selection menu spawned.
2014-01-20Code Cleanup: remove redundant NULL checks and add function attributesCampbell Barton
2014-01-04UI: Use bool rather then int/short's where possibleCampbell Barton
2013-12-24UI: Display alpha checkers in image info's color swatch.Campbell Barton