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
2019-11-14Sculpt: disable undo from any UI elements in sculpt modeCampbell Barton
Causes undo push in sculpt mode, see: T71434
2019-11-08Fix T71405: Trying to Ctrl-C on many buttons crashes BlenderPhilipp Oeser
Usually Ctrl+C copies the operator name to the clipboard ["bpy.ops.material.new()", "bpy.ops.object.material_slot_remove()"] Crash happens for all buttons of UI_BTYPE_BUT without associated operator [some are defined with callbacks only, often these are created with e.g uiDefIconBut (instead of e.g. uiDefIconButO)] Other examples that crash with Ctrl+C: - animation decorators next to animatable properties - button to show a modifier texture in the texture tab - ... 2.79 survived here (result in the clipboard was just not changed hitting Ctrl+C on these buttons), this is what happens with this patch as well. Maniphest Tasks: T71405 Differential Revision: https://developer.blender.org/D6208
2019-11-08Fix T55632: USE_DRAG_MULTINUM and USE_ALLSELECT not working well togetherPhilipp Oeser
'is_copy' was not set correctly on all uiButMultiState (it was done once for uiHandleButtonData), resulting in 'delta' being used on some indices of the array and not others in `ui_selectcontext_apply`. Maniphest Tasks: T55632 Differential Revision: https://developer.blender.org/D6201
2019-11-05Fix T68130: Over sensitive number button draggingCampbell Barton
When continuous grab, cursor motion was mapped to the min/max. This caused problems when int/float max values were used. Now the range is clamped by a value derived from the click-step so dragging numbers never increases it to an impractically large value.
2019-10-11Fix T70191: Text button in popup doesn't workCampbell Barton
F2 rename didn't work with mouse input.
2019-10-10Fix T70691: Crash picking object from eyedropperCampbell Barton
Caused by 828905190e124
2019-10-03Cleanup: argument naming, redundant NULL checksCampbell Barton
2019-09-26WM: clean up cursors constants and codeBrecht Van Lommel
There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197
2019-09-16Fix T69755: 'Enter' over file name not workingJulian Eisel
Was breaking event handling at the wrong place.
2019-09-13UI: use pageup/down and home/end to scroll to start/end of menusJoep Peters
Differential Revision: https://developer.blender.org/D5582
2019-09-09UI: Refactor and improve buttton extra iconsJulian Eisel
Without this patch there could only be one superimposed icon and the operators were hard coded for the button types. This keeps the previous, sort of predefined extra icons working in a rather generic way, but allows adding specific ones for specific case through `UI_but_extra_operator_icon_set()`. Reviewed by: Campbell Barton Differential Revision: https://developer.blender.org/D5730
2019-09-08Fix T67756: File drag starts on file browser openJulian Eisel
When the file browser was opened (from a temporary window since the file browser redesign) using a button in the UI, under certain conditions moving the mouse would trigger files to be dragged. Note that this has been an issue before the new file browser design was introduced, although under slightly different conditions. Steps to reproduce: * With factory settings, press F12 * Open a different image in the appearing Image Editor (not Render Result) * Make sure the window is not maximized * Press N to open the side bar, open Image tab * Click the folder icon there to change the image * Change to thumbnail display type in the appearing file browser * Cancel, click the folder icon again Moving the mouse now would start dragging files in most cases. The same issue could be reproduced in a similar way when installing lights/MatCaps or HDRIs through Preferences -> Lights -> Install...
2019-09-04Expose button UTF8 check in UI_interface.hJulian Eisel
Used in following commit.
2019-08-30Cleanup: spellingCampbell Barton
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558
2019-08-21Fix T68951: Incrementing int property causes overflowJacques Lucke
This was probably introduced in rBfdef1a6712b.
2019-08-17Cleanup: spellingCampbell Barton
2019-08-15Fix broken text editing of integer number buttons, after recent changesBrecht Van Lommel
2019-08-15Fix T65461: IntProperty does not respect its 'step' fieldCampbell Barton
Originally D5020 by @deadpin, refactored to make the change simpler.
2019-08-15UI: make int/float button clicking logic consistentCampbell Barton
- When no change is performed on a float button, cancel the action. - Move left/right clicks into the same block. - Replace ambiguous names: temp, tempf.
2019-08-14Fix T68637: Crash assigning caps-lock shortcutCampbell Barton
Report that this isn't supported instead, also for unknown key.
2019-08-06Cleanup: use BKE_ prefix for BKE_colortools.hCampbell Barton
2019-07-31Revert "UI: remove checks for other popovers when switching menu"Sebastian Parborg
This reverts commit 77616571292ab1eeb9805797bfdd4525cc306923. This commit broke overlapping popovers. For example in the color management tab it would be impossible to select and of the popover alternatives as it would switch to the menu button under the cursor.
2019-07-31UI: remove checks for other popovers when switching menuCampbell Barton
I'm unable to redo the original report, Revert fix for T43247..
2019-07-31UI: simplify check for active menu buttonCampbell Barton
Dragging to select another popup now checks the menus active button.
2019-07-30Fix T67882: buttons are interrupt drag actionsCampbell Barton
2019-07-16Fix T67002: Crash redoing an action after ID renameCampbell Barton
2019-07-08Fix T66538: Menus in popups opening on mouse overCampbell Barton
Caused by b708917d94afa Solve by restricting this change to popovers instead of other kinds of menus (enums mainly).
2019-07-05Workaround T61948: Undo steps created for non-paint operationsCampbell Barton
Changing the brush size for example, was adding redundant undo steps in paint-modes. For now, don't store undo steps for property changes in paint & edit modes. While not ideal, this is similar to 2.7x behavior.
2019-07-02Fix T66316: "Open on Mouse Over" doesn't work in some popoversCampbell Barton
Popovers created from `UILayout.prop_with_popover` opening on mouse-over.
2019-07-01Fix preferences setting dirty when editing keymap itemsCampbell Barton
2019-07-01Fix T66246: Key accelerators crashing on save dialogCampbell Barton
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-05-30Cleanup: move click/drag events to functionsCampbell Barton
Simplifies future changes to dragging checks and avoids each check for drag using slightly different logic.
2019-05-29UI: use matching distance checks & define for draggingCampbell Barton
2019-05-28Cleanup: use WM_ prefix for cursor enumCampbell Barton
2019-05-28WM: support X/Y axis cursor wrappingCampbell Barton
Operator flags to wrap on a single axis. D4865 by @Gvgeo with updates. Resolves T64585
2019-05-27Fix T65074: Crash on switching colorCampbell Barton
Make buttons to take active `Paint` from the context. D4946 by @Gvgeo
2019-05-22Error in last commitCampbell Barton
2019-05-22Fix T64679: Missing dirty preferences tagCampbell Barton
Use a default update function for user preferences that tags dirty and redraws (if changed). This avoids relying on button changes which fail in some cases.
2019-05-21Fix part of T64679: Missing dirty preferences tagCampbell Barton
- Editing shortcuts. - Editing walk mode navigation. - Adding/removing paths.
2019-05-20Cleanup: reorder report argument for pointer assignmentCampbell Barton
Most code uses ReportList argument last (or at least not first) when an optional report list can be passed in.
2019-05-19Fix T64822: curve widget point selection does not take into account DPIBrecht Van Lommel
2019-05-17Python: Raise an error even NO_MAIN data is assigned to objectSergey Sharybin
The goal is to prevent assignment of temporary or evaluated meshes to objects from the main database. Majority of the change is actually related on passing reports around. On a positive side there are more error prints which can become more visible to scripters. There are still possible further improvements in the related areas. For example, disable user counting for evaluated ID datablocks when assignment happens. But can also happen later on as a separate improvement. Reviewers: brecht, campbellbarton, mont29 Reviewed By: brecht Differential Revision: https://developer.blender.org/D4884
2019-05-15Fix preference dirty tagging for addons & keymapsCampbell Barton
2019-05-14Interface: Free argument callback for popupsJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4858
2019-05-14Preferences: set dirty flag when draggingCampbell Barton
2019-05-14Fix missing preference dirty taggingCampbell Barton
Tagging dirty was failing for UI scale, line width, hinting & others. Checking for an update function means all update functions need to tag preferences as dirty. Since this check was added to prevent the active section marking the preferences as dirty, only exclude this property.
2019-05-13Fix unintended autosaving of preferences in a few casesBrecht Van Lommel
* Dirty flag was not cleared on load * Navigating tabs should not cause save * Background mode should not autosave (for e.g. render farms and tests)
2019-05-10UI: allow to cancel editing of vector widgets with escape and RMBAlessio Monti di Sopra
Differential Revision: https://developer.blender.org/D4838