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
2020-06-19UI: ShaderFx Drag and Drop, Layout UpdatesHans Goudey
This patch implements the list panel system D7490 for grease pencil shader effects. It also moves their drawing to a callback in ShaderFxTypeInfo in line with the extensible architecture refactoring goal T75724. The implementation is basically exactly the same as for the modifier patch (9b099c86123fc82). Thanks to Matias Mendiola (@mendio) for helping to develop the layout changes. Differential Revision: https://developer.blender.org/D7985
2020-06-19UI: Grease Pencil Modifier Drag and Drop, Layout ChangesHans Goudey
This patch implements the list panel system D7490 for grease pencil modifiers. It also moves their drawing to a callback in GpencilModifierTypeInfo in line with the extensible architecture refactoring goal T75724. This also adds the "set_error" function for grease pencil modifiers, which hadn't been copied from mesh modifiers yet. The implementation is basically exactly the same as for the modifier patch (9b099c86123fc82). Thanks to Matias Mendiola (mendio) for providing mockups for many of the layout changes. Differential Revision: https://developer.blender.org/D7978
2020-06-19UI: Drag and Drop Constraints, Layout UpdatesHans Goudey
This patch implements the list panel system D7490 for constraints. In this case the panels are still defined in Python. The layouts are also updated to use subpanels and the a more organized single column layout. There may be more tweaks necessary for the layouts. Reviewed By: Severin, billreynish, Mets Differential Revision: https://developer.blender.org/D7499
2020-06-18Cleanup: redundant parenthesisCampbell Barton
2020-06-17UI: Improve Modifier Panel Header MenuHans Goudey
This makes a few changes to the modifier panel header: 1. Adds "move to top" and "move to bottom" buttons. 2. Adds a checkmark icon for "apply" 3. Makes it narrower, the text is closer to the dropdown icon. (Requires the change in ui_block_func_POPUP) Differential Revision: https://developer.blender.org/D8040
2020-06-17UI: Ctrl-click on panel header expands & collapses subpanelsHans Goudey
If the panel is already open and you ctrl click on its header, its sub-panels are now expanded / collapsed instead of toggling the expansion for all other panels. If you're toggling a panel's expansion it's already in view anyway, so there is no need to collapse the other panels. Differential Revision: https://developer.blender.org/D8042
2020-06-16Cleanup: unused headers, spellingCampbell Barton
2020-06-16Cleanup: Use LISTBASE_FOREACH in interface_panel.cHans Goudey
2020-06-15Fix T77541: Unregistering DATA_PT_modifiers doesn't remove modifier panelsHans Goudey
This is a pretty quick fix; the solution is just removing all the instanced panels whena panel is unregistered. This also necessitates adding the option to call UI_panels_free_instanced with NULL context. Differential Revision: https://developer.blender.org/D7977
2020-06-15Fix text after '|' being right aligned in the ID selectorCampbell Barton
Only use this to right align libraries when they are added to the name. Caused by d62bbf4079323.
2020-06-11Fix T77171: File selector doesn't tag preferences to be savedCampbell Barton
2020-06-11UI: exclude context menus from menu searchCampbell Barton
This causes the search result to be less predictable as well as including menu items multiple times.
2020-06-10UI: Only set panel data expand flag for active panelsHans Goudey
This solves a crash when switching from the modifiers tab to an armature object and expanding a panel. Thanks to Alexander Gavrilov for mentioning the problem.
2020-06-10Fix T77694: Start panel animation when expansion data changesHans Goudey
During normal drawing there is a rather complicated method to check whether the panels should be animating. It's not set up to deal with the panel expansion changing from outside the UI, which is now possible with the panel expansion connected to the modifier's show_expanded property. The solution is to activate panel animation if setting the expansion property has changed.
2020-06-10UI: Show library names grayed out and right-aligned in menusJulian Eisel
Should separate the data-block name better from the library name and improve readability.
2020-06-09Fix missing animation decorators for pointer buttonsJulian Eisel
Also, remove manually placed decorator for vertex groups in modifiers. This was only needed because of this bug, and the layout was slightly misaligned.
2020-06-09UI: Set modifier panel expansion on every redrawHans Goudey
This will fix situations where the modifier epansion was set elsewhere besides the UI, like from the python console, solving the drawing part of T77502. Also adds update tags to the show_expanded property, which means the properties window redraws when the property changes.
2020-06-09UI: Avoid rebuilding Outliner tree on simple button interactionsJulian Eisel
E.g. simply on button hover changes, the tree would be needlessly rebuilt. I wouldn't be surprised if this causes side-effects, for some state changes we may still have to do a full rebuild.
2020-06-09Fix T77504: Operator search gives wrong resultsCampbell Barton
Regression in e8ab0137f8766
2020-06-09Fix menu operator/search clipping the last characterCampbell Barton
Noted in T77504
2020-06-09Fix T77148: Crash changing multiple values for sequencer stripsCampbell Barton
This was caused by assuming all strips were the same type.
2020-06-06UI: Ability to Print Bold and ItalicsHarley Acheson
Adds the ability to print text in bold or italics style, synthesized from a single base UI font. Differential Revision: https://developer.blender.org/D7893 Reviewed by Brecht Van Lommel
2020-06-05UI: Drag and Drop Modifiers, Layout UpdatesHans Goudey
This patch implements the list panel system D7490 for modifiers. It also moves modifier drawing to a callback in ModifierTypeInfo in line with the extensible architecture refactoring goal T75724. This adds a PanelRegister callback and utilities for registering panels and subpanels. It also adds the callbacks for expansion saving and drag and drop reordering described in D7490. These utilities, callbacks, and other common UI elements shared between modifiers live in MOD_ui_common.c. Because modifier buttons are now in panels, we can make use of subpanels for organization. The UI layouts also use the single column layout style consistently used elsewhere in Blender. Additionally, the mode-setting buttons are aligned and ordered consistently with the outliner. However, the large number of UI changes in this patch may mean that additional polishing is required in master. Thanks to William Reynish (@billreynish) who did a fair amount of the layout work and to Julian Eisel (@Severin) for consistent help. Differential Revision: https://developer.blender.org/D7498
2020-06-05Fix failing assert when dragging panel close to region edgeHans Goudey
Forgot to include this change from Julian Eisel @Severin in the previous commit.
2020-06-05UI: Pan 2D Region When Dragging to BoundaryHans Goudey
This adds a modal operator called Edge Pan, which is meant to run invisibly while something inside a region is being dragged. This patch applies this to dragging panels, but it can be used elsewhere too. The speed (which is defined relative to how far the mouse is beyond the boundary) and delay are easily adjustible. and the speed also increases smoothly from a start value to a max to make it feel more interactive and less robotic. Differential Revision: https://developer.blender.org/D7465
2020-06-05Cleanup: use ED_object_ prefix for constraint functionsCampbell Barton
- ED_object_constraint_list_from_constraint was get_constraint_lb - ED_object_constraint_list_from_context was get_active_constraints - ED_object_constraint_active_get was get_active_constraint - ED_object_constraint_active_set was ED_object_constraint_set_active
2020-06-05Code Cleanup: fcurve function namingJeroen Bakker
2020-06-05Cleanup: spellingCampbell Barton
2020-06-03Eyedropper: Support get samples from other windowsGermano Cavalcante
This fix T77226 Differential Revision: https://developer.blender.org/D7910
2020-06-02Revert "UI: Fix T77173: Report Background Colors for 2.83 Release"Hans Goudey
This reverts commit 7fc0053c27e5e9ba3cc946898c7c11a8545f2777.
2020-06-02Merge branch 'blender-v2.83-release'Hans Goudey
2020-06-02UI: Fix T77173: Report Background Colors for 2.83 ReleaseHans Goudey
This is a temporary solution for T77173 for the 2.83 release. D7203 provides a more long term solution for future releases. This adds theme colors for the three report backgrounds, setting them to the color used in 2.82. A separate commit in the addons repository will follow for changes to the bundled themes. Differential Revision: https://developer.blender.org/D7908
2020-06-02Cleanup: Use const context for some UI templatesHans Goudey
- uiTemplateID: Straightforward, just const for the template and the functions it calls - uiTemplateCacheFile: Create a function in rna_ui.c because the generated RNA callback doesn't have const context. Differential Revision: https://developer.blender.org/D7895
2020-06-02Cleanup: GPU: Remove GPU_shaderinterface_uniform_ensureClément Foucault
2020-06-02GPU: ShaderInterface: Refactor to setup all uniform at creation timeClément Foucault
This remove the complexity of queriying the locations at runtime and allows for more performance and upfront binding specifications. The benefit of doing everything at creation time is that we can assign binding points in a predictable order which is going to be somewhat the same for every similar shader. This also rewrite GPU_vertformat_from_shader to not use shaderface. This is to keep the shaderface simple. If it becomes necessary to not query the shader after creation (i.e: vulkan?) we could just create the vert format in advance at compilation for PyGPU shaders. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7879
2020-05-28Cleanup: spellingCampbell Barton
2020-05-27Cleanup: sort file, structsCampbell Barton
2020-05-26UI: List Panel SystemHans Goudey
This implements a general system to implement drag and drop, subpanels, and UI animation for the stack UIs in Blender. There are NO functional changes in this patch, but it makes it relatively trivial to implement these features for stacks. The biggest complication to using panels to implement the UI for lists is that there can be multiple modifiers of the same type. Currently there is an assumed 1 to 1 relationship between every panel and its type, but there can be multiple list items of the same type, so we have to break this relationship. The mapping between panels and their data is stored with an index in the panel's runtime struct. To make use the system for a list like modifiers, four components must be added: 1. A panel type defined and registered for each list data type, with a known mapping between list data types and panel idnames. 1. A function called by interface code to build the add the panel layouts with the provided helper functions. - UI_panel_list_matches_data will check if the panel list needs to be rebuilt. - UI_panels_free_instanced will remove the existing list panels - UI_panel_add_instanced adds a list panel of a given type. 3. An expand flag for the list data and implementations of get_list_data_expand_flag and set_list_data_expand_flag. 4. For reordering, the panel type's reorder callback. This is called when the instanced panels are drag-dropped. This requires implementing a "move to index" operator for the list data. Reviewed By: Severin, brecht Differential Revision: https://developer.blender.org/D7490
2020-05-26Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-26Fix overlapping tabs placement when used in right Top-bar splitJulian Eisel
Didn't respect alignment rules for split layouts. Reported in T77075.
2020-05-26Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-26Cleanup: Avoid mixing unlink-operator and menu name for ID-templatesJulian Eisel
The context menu name for `UILayout.template_ID_tabs()` would be passed through multiple functions as `unlinkop`.
2020-05-26Fix T77075: Crash omitting optional UILayout.template_ID_tabs parameterJulian Eisel
2020-05-22Fix T76940: Empty HUD (Redo Panel)Julian Eisel
If the redo panel was made visible with the same size it had before (e.g. stored in the file), the runtime region coordinates wouldn't get set and ended up being all 0. E.g. the simplest way to cause this was having a collapsed HUD, saving the file, re-opening it with the same effective DPI and doing an operation so the closed HUD would appear again. Now the size is always recalculated if the visibility state of the HUD changes.
2020-05-22Merge branch 'blender-v2.83-release'Richard Antalik
2020-05-22Fix T64277: Inverted WheelmouseJeroen Bakker
When using CTRL wheel mouse the items were selected in a different order than when opening the menu and use the wheel mouse. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D7791
2020-05-20Merge branch 'blender-v2.83-release'Clément Foucault
# Conflicts: # source/blender/draw/engines/eevee/eevee_volumes.c
2020-05-20UI: Remove Panel Grid Snapping While DraggingHans Goudey
The reason to have this isn't quite clear, but it looks like a vestige of the 2.5 transition. Removing this makes dragging panels feel much more responsive. Thanks to Julian Eisel @Severin for the original change. Differential Revision: https://developer.blender.org/D7803
2020-05-20UI: Fix Wideline AA for timelineClément Foucault
2020-05-20Merge branch 'blender-v2.83-release'Campbell Barton