Revision 44dcc74 by Hans Goudey (property-search-ui-v2) September 9, 2020, 18:27 (GMT) |
Property Search: Add highlight arguments to tab buttons For searching multiple tabs, we need a way to show which tabs have a search result, but we still need to be able to show which tab is active. Also, multiple tabs can be highlighted, so that argument needs be be a bitfield enum. This requires giving extra arguments to `ui_item_enum_expand_tabs`. Unforunately this adds a bit of ugly complexity to this function. It would be better if RNA enum items could have an "active" flag, but that change would probably have larger scope. Differential Revision: https://developer.blender.org/D8858 |
Revision 863ea6a by Hans Goudey (property-search-ui-v2) September 9, 2020, 18:14 (GMT) |
Property Search: Quick start and clear operators This patch adds quick start and quick clear operators. `ctrl-F` is obviously necessary, but the clear operator, `alt-F` requires a bit of explanation. First, it maps nicely to the paradigm of "key to set, alt-key to clear," which makes it pretty unobtrusive. Second, it can be a quicker way to clear the search than moving the mouse to the top. Finally, a future improvement I would like to make to property search is adding the ability to reset the panels to their expansion before the search started. Either escaping out of the button while text editing or pressing `alt-F` would be the way to do that. Differential Revision: https://developer.blender.org/D8857 |
Revision 58488c0 by Hans Goudey (property-search-ui-v2) September 9, 2020, 18:01 (GMT) |
Property Search: Single tab This adds a search bar to the properties editor. The full search for every tab isn't includede in this patch, but the interaction with panels, searching behavior, internal UI, region level, and DNA changes are included here. The block-level search works by iterating over the block's buttons and checking whether they match the search. If they do, they are tagged with a flag, and the block's panel is tagged too. For every update (text edit), the panel's expansion is set to whether the panel has a result or not. There is some complications to this that you might no initially think of: 1. Closed panel's subpanels have to be searched too. This adds some complexity and special cases to the area-level panel layout code. 2. //Maybe more if I think of things to add here// There might be some methods of simplifying some of the logic, particularly around choosing whether to highlight panel headers. Also note that automatic subpanel expansion isn't working right now. I'll look into this, but I want to post all the patches first. **Future Improvements** Here are some improvements possible in the future that won't be part of this patch: 1. Use the new fuzzy search in BLI 2. Reseting panels to their expansion before the search started if you `esc` out of the text box 3. Open parent panels if their subpanels have a match but they don't. This requires adding a reference to parent panels for subpanels. Differential Revision: https://developer.blender.org/D8856 |
September 9, 2020, 17:32 (GMT) |
UI: Fix Icon drawing on MacOS It seems that using a vertex shader using both `gl_InstanceID` and `gl_VertexID` is causing some issues on MacOS + Intel Iris. Regression introduced by rB052538edc1fba109d3427471047611888ed13bea |
September 9, 2020, 17:19 (GMT) |
Cleanup: Remove warning re: const qualifier discarded Warning introduced on a5db981b0ea044313239c3cc2ee92d. |
Revision 6a76eea by Hans Goudey (property-search-ui-v2) September 9, 2020, 17:08 (GMT) |
Property Search: Add "Search match" theme color We use a highlight on panel headers to convey that they have a search match. It's also conceivable to use this color to highlight the property editor tabs that have search results. Normally we don't like adding new theme colors, but this is quite a special case. For example, the color in the outliner is green. This patch has a blue highlight so it feels more cohesive though. Differential Revision: https://developer.blender.org/D8854 |
Revision f3197de by Hans Goudey (property-search-ui-v2) September 9, 2020, 16:57 (GMT) |
Property Search: Move properties context buttons back to a panel The context path buttons used to be in a panel in 2.79. Although they look a bit better in the header, there is not space for them with the property search field in the header as well. In the long term, maybe it will be possible to shrink the text button and then animate it expanding when property search begins, then there would be enough room for both. Note that this diff is just for review, Blender won't ever actually have only the pin button in the header like the following image. {F8858554 size=full} Differential Revision: https://developer.blender.org/D8853 |
September 9, 2020, 16:41 (GMT) |
Cleanup: reduce variable scope |
September 9, 2020, 16:25 (GMT) |
Property Search: Small cleanups |
September 9, 2020, 16:17 (GMT) |
Merge branch 'property-search-button-label-pointer' into property-search-ui-v2 |
September 9, 2020, 16:16 (GMT) |
Merge branch 'properties-pin-operator' into property-search-button-label-pointer |
September 9, 2020, 16:15 (GMT) |
Merge branch 'master' into properties-pin-operator |
September 9, 2020, 16:02 (GMT) |
Merge branch 'properties-pin-operator' into property-search-ui-v2 |
September 9, 2020, 15:56 (GMT) |
Fix T80590: Popups clipped by status-bar and top-bar The drawing of popus should be done with the window's default viewport and scissor. Previous functions may change these, so they should be explicitly reset. |
September 9, 2020, 15:54 (GMT) |
Use RNA to set the pin ID |
September 9, 2020, 15:14 (GMT) |
Merge branch 'master' into properties-pin-operator |
September 9, 2020, 15:01 (GMT) |
Geometry: add Attributes panel for PointCloud and Hair There is a list of attributes, along with operators to add and remove attributes. For adding, there are a few standard attributes that can be added quickly, as well as a popup to create a custom attribute. Ref T76659 Differential Revision: https://developer.blender.org/D8636 |
September 9, 2020, 15:01 (GMT) |
Geometry: use generic attributes for Hair and Point Clouds Instead of custom data layer with special types, using general Vector and Float attributes. Ref T76659 Differential Revision: https://developer.blender.org/D8635 |
September 9, 2020, 15:01 (GMT) |
Geometry: add .attributes in the Python API for Mesh, Hair and Point Cloud This puts all generic float/int/vector/color/string geometry attributes in a new .attributes property. For meshes it provides a more general API for existing attributes, for point clouds attributes will be used as an essential part of particle nodes. This patch was implemented by @lichtwerk, with further changes by me. It's still a work in progress, but posting here to show what is going on and for early feedback. Ref T76659 Differential Revision: https://developer.blender.org/D8200 |
September 9, 2020, 14:58 (GMT) |
Fix T76346: Moving objects in outliner doesn't update local collections The fix involves going over ALL the possible combinations of viewlayers and viewports and re-sync. I tested this with multiple windows, multiple scenes and multiple viewlayers. Since (for now?) the operation of syncing the local layer collections is not too expensive, this is not so bad. In theory we could improve this by checking if the collection the object was moved to and from is in the scene before iterating over it. I don't think it is worthy though. Thanks Arun Parolikkal for the initial attempt on D8342. Final patch reviewed by Brecht Van Lommel. |
|
|
|


Master Commits
MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021