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
2021-06-24Cleanup: remove outdated/redundant commentsCampbell Barton
2021-06-19Spreadsheet Editor: Row FiltersHans Goudey
This patch adds support for filtering rows based on rules and values. Filters will work for any attribute data source, they are a property of the spreadsheet rather than of the attribute system. The properties displayed in the row filter can depend on data type of the currently visible column with that name. If the name is no longer visible, the row filter filter is grayed out, but it will remember the value until a column with its name is visible again. Note: The comments in `screen.c` combined with tagging the sidebar for redraw after the main region point to a lack of understanding or technical debt, that is a point to improve in the future. **Future Improvements** * T89272: A search menu for visible columns when adding a new filter. * T89273: Possibly a "Range" operation. Differential Revision: https://developer.blender.org/D10959
2021-04-08Fix: Dragging a modifier to the same index recalculates modifier stackHans Goudey
The fix is to simply check if the final index is the same as the start index and not call the "reorder" callback in that case.
2021-03-30Cleanup: Decrease variable scopeHans Goudey
2021-02-05Cleanup: correct spelling in codeCampbell Barton
2021-02-05Cleanup: correct spelling in commentsCampbell Barton
2021-01-29Merge branch 'blender-v2.92-release'Hans Goudey
2021-01-29Fix T83988: Active modifier outline uses search theme colorHans Goudey
The outline for the active modifier was abusing the property search match theme color, as noted in a comment. This commit adds a new theme color in RNA specifically for the active modifier outline.
2021-01-25Cleanup: pass 'rctf' rectangle to 2D box drawing functionsCampbell Barton
Passing 4x arguments for the rectangle, mixed in with round-box radius & color wasn't very readable. Instead, pass a `rctf` as the first argument to UI box drawing functions.
2021-01-22Fix: Mouse presses in some areas do not set active modifierHans Goudey
There are a couple of operations that are meant to set the active modifier that currently don't. The first is a mouse press on the drag icon on the right of the header, and the second is mouse presses on modifier sub-panels headers. This was an oversight in the implementation, especially the second, because the blank space on the right of a sub-panel header often looks just like the blank space elsewhere on the modifier's panel that *does* set the active modifier. Note that this purposefully doesn't include collapsing and expanding the modifier as operations that set the active, since regardless of whether that makes sense, it wasn't in the agreed upon design, which would ideally not need changing for 2.92. Differential Revision: https://developer.blender.org/D10155
2020-12-04Fix T83346: Scrolling doesn't work with mouse over panel headerHans Goudey
Just a misplaced assignment to the return value from the panel handler in rB600fb28b6295.
2020-12-02Cleanup: Store "is_active" instead of pointer property in panel typeHans Goudey
This is consistent with the way other panel type fields are stored.
2020-12-02Geometry Nodes: active modifier + geometry nodes editorHans Goudey
This commit adds functions to set and get the object's active modifier, which is stored as a flag in the ModifierData struct, similar to constraints. This will be used to set the context in the node editor. There are no visible changes in this commit. Similar to how the node editor context works for materials, this commit makes the node group displayed in the node editor depend on the active object and its active modifier. To keep the node group from changing, just pin the node group in the header. * Shortcuts performed while there is an active modifier will affect only that modifier (the exception is the A to expand the modifiers). * Clicking anywhere on the empty space in a modifier's panel will make it active. These changes require some refactoring of object modifier code. First is splitting up the modifier property invoke callback, which now needs to be able to get the active modifier separately from the hovered modifier for the different operators. Second is a change to removing modifiers, where there is now a separate function to remove a modifier from an object's list, in order to handle changing the active. Finally, the panel handler needs a small tweak so that this "click in panel" event can be handled afterwards.
2020-11-26UI: Fix incorrect offset for panel label when zooming inHans Goudey
The panel title text intersected any buttons in the header because the label offset retrieved from the layout code was not scaled by the block's zoom level. Error in rB0d93bd8d63980.
2020-11-20UI: Fix panel drag icon added to redo panelHans Goudey
Error in cleanup commit 0d93bd8d639. Currently floating panels cannot be dragged, so the widget should not be displayed.
2020-11-18Fix: Sub-panel backdrop sometimes draws when closedHans Goudey
My last cleanup commit for this function missed this case. It likely happens because the panel's block size doesn't update properly somewhere. Short of investigating that right now, it makes sense to return early in this case anyway.
2020-11-18Cleanup: Move function to proper sectionHans Goudey
2020-11-18UI Code Quality: Refactor panel drawing functionHans Goudey
The existing panel drawing function was a bit convoluted with dependent conditions in different scopes, redundant and unecessary computations, and un-helpful naming. This commit separates the function into two parts, the backdrop and the widgets. It also improves naming and uses const where possible, and in general cleans up the code. There are some slight visual changes, mostly with the placement of the drag icon, which moves a bit downward to be centered with the triangle icon. The black rectangle displayed while dragging is also removed.
2020-11-17Fix T81227: Modifier menu and text switch placesJulian Eisel
Logic was incorrect, mistake in f3b8792b963b. Updated comment to make intent more clear.
2020-11-16UI: Remove X axis panel draggingHans Goudey
X axis panel dragging traces back to Blender versions before 2.5, where panels could be aligned horizontally. But for many years now panels have been vertically aligned. Considering this, keeping the X axis dragging around is a bit odd. It makes interaction confusing, or at least more complicated. It also looks bad, since any part of the panel outside the region is cropped. Differential Revision: https://developer.blender.org/D9549
2020-11-13Cleanup: Make panel type flag names more clearHans Goudey
The overlap with the `Panel` flags that start with "PNL" was quite confusing because wasn't clear which enum a flag was from. The new names are a bit longer, but the clarity is worth it.
2020-11-13Cleanup: Remove unecessary logic in panel codeHans Goudey
Also use short for panel flag arguments to functions since it matches the type in DNA, and remove a comment that isn't helpful.
2020-11-13Cleanup: Simplify panel activate state functionHans Goudey
This commit moves some of the logic around so that the logic in panel_activate_state is clearly separated by the state being activated. There are fewer nested and redundant checks, and it's easier to see the progression of interaction with the panel handler.
2020-11-05Cleanup: Use const for function argumentsHans Goudey
2020-11-05Fix T82417: Panels draw below others while animating after dragHans Goudey
This adds a new runtime flag for panels that is set during the entire drag and animation operation. The flag is set recursively so that sub-panels know to draw on top too. Note that this also replaces most of the fixes in 1960b8a361ee and 8e08d80e52d6 (D7462) with a more "built-in" solution.
2020-11-05Cleanup: Simplify panel collapse handler logicHans Goudey
2020-11-05Cleanup: Remove unused Panel.snap from DNA and handler codeHans Goudey
This was a remnant of floating panels from the horizontal layout in pre 2.5 horizontal panels.
2020-11-05Cleanup: Remove unused drag scaling code for panelsHans Goudey
This is done more universally now, and this implementation of this is no longer used.
2020-11-05Cleanup: Make panel function staticHans Goudey
These functions were not used elsewhere, and the handling for the panel tabs should be kept local to this file where possible. Also remove another unused function and removed an unecessary "_ex" function.
2020-11-05Cleanup: Move function to proper fileHans Goudey
This lower level drawing function didn't make sense in the panel code, especially when it is used in multiple other places.
2020-11-05Cleanup: Improve property search related comments panel codeHans Goudey
The comments related to property search changes should be generally more correct and more helpful.
2020-11-04Merge branch 'blender-v2.91-release'Hans Goudey
2020-11-04Property Search: Fix missing update switching tabs after searchHans Goudey
What I thought was an "optimization" was really a bug. The "use search for expansion" value needs to be set for every panel, even panels in other tabs. Otherwise it won't be properly set when switching back to a tab that was visited during search. Differential Revision: https://developer.blender.org/D9427
2020-11-03Cleanup: Remove unused parameter in panel codeHans Goudey
This is no longer used after rB54da72d3cd546ecb, but passing it to a recursive call hid the warning.
2020-10-26Cleanup: spellingCampbell Barton
2020-10-20Cleanup: use BLI_listbase_is_single instead of countingCampbell Barton
2020-10-19Spelling: It's Versus ItsHarley Acheson
Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required. Differential Revision: https://developer.blender.org/D9250 Reviewed by Campbell Barton
2020-10-16Property Search: Reset panel expansion when exiting searchHans Goudey
This patch implements panel expansion saving and resetting for property search. While search is active, the panel expansion is based on whether or not it has a search result. When the search finishes, the panel expansion returns to its state before the search started. However, any panels interacted with during the search won't reset their expansion. This requires adding a new runtime flag for panels to store whether to use search result status as expansion. It also requires better handling for animation when panel expansion changes with another new runtime flag. `UI_panel_is_closed` gets the search-dependent expansion, but it is intentionally not used to access expansion in every case-- sometimes it's necessary to use `PNL_CLOSED` directly. Differential Revision: https://developer.blender.org/D8984
2020-10-07Fix / cleanup panel category tab drawingYevgeny Makarov
The panel category tabs (In the 3D view N-panel) did not look great when zoomed in or with high DPI screens, with multiple overlapping outlines, and roundness that didn't match elsewhere in Blender. In addition, there was some unecessarily low-level drawing code in the panel code. This commit uses an existing function `UI_draw_roundbox_4fv`to draw the tabs instead. There are some slight visual differences, though these are easily adjusted with theme colors. Differential Revision: https://developer.blender.org/D9045
2020-10-06Fix T81470: Buttons in closed panel visible during searchHans Goudey
The buttons hide when the search finishes based on whether they are in the "panel header" group. These buttons were not protected with a new group. This adds a new group for operator button calls, and also makes it so a new group is always created after the header buttons.
2020-10-03Property Search: Set panel expansion when tab changesHans Goudey
This commit makes the panel expansion set based on the search results when the active tab in the properties editor changes. The multi-tab search patch (D8859) actually doesn't handle this because it uses a different code path. This feature uncovered a subtle but fairly significant issue with the implementation of property search (More details in T81113). Basically, the search needed multiple redraws to properly display the expansion of panels based on the search results. Because there is no animation of panel expansion when switching tabs, the problem was exposed only now. With this commit, hiding of "search only" buttons and panel size calculation happens in a single final step of the panel layout pass. The "search only" layout root flag is removed. Instead every button inside a panel header is in a single "uiButtonGroup" marked with a specific "in header" flag, an idea which could be generalized in the future. Differential Revision: https://developer.blender.org/D9006
2020-10-03Cleanup: Remove dead code in panel logicJulian Eisel
The region types checked here were removed from the editors in 9e2abbc9ba5d and eb7485389b8a. So the if-conditions would never be true.
2020-10-02Property Search: Don't use search color for subpanel titlesHans Goudey
This replaces the blue theme color for subpanel titles with the the same fade as for parent panels. The search color doesn't work well for subpanel title colors. And actually, because there are often buttons with checkboxes in the panel headers, we don't have to treat this indicator any differently than regular buttons. Differential Revision: https://developer.blender.org/D8976
2020-09-30Cleanup: Make function privateHans Goudey
The "UI_panel_set_expand_from_list_data" doesn't need to be in the public API since it's just called every time an instanced panel is added. This commit just sets the expansion automatically and adjusts some naming to account for the moved function.
2020-09-30Fix use after free deleting object with modifier panels visibleHans Goudey
It's necessary to check if the panels are active before accessing their data. Thanks to @ankitm for reporting this.
2020-09-29Property Search: Set expansion properly for child panelsHans Goudey
Although I haven't seen this cause any visible errors, there is some incorrect handling for setting panel expansion during search: - Properly check if child panel is active first - Don't stop traversal at headerless panels that could theoretically have children
2020-09-28Fix T79275: Missing redraw for pinned active tool settings panelsDavid Friedli
In the 3D view sidebar, the active tool settings panel can be pinned to other categories, and in those other categories it doesn't redraw when the active tool changes. This commit checks for pinned panels from the "Tool" category when checking whether to redraw. Note that the relatively expensive string comparison is only done for currently visible pinned panels. Differential Revision: https://developer.blender.org/D9012
2020-09-24Cleanup: Move function to proper sectionHans Goudey
The main panel drawing funciton should be in the "Drawing" section.
2020-09-24Cleanup: Remove unused functionHans Goudey
2020-09-24Cleanup: spellingCampbell Barton