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-07-23Fix T79162: 'prop_search' includes ID prefix in string propertiesCampbell Barton
Regression from d6cefef98f87a This also fixes an unreported issue where finding an exact match wasn't being detected for items that contained an ID prefix.
2020-07-03Cleanup: Editors/Space/Node, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/space_node` module. No functional changes.
2020-05-26Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-26Fix T76970: Unneccessary update calls viewportJeroen Bakker
Due to recent changes clicks in the node editor would trigger a depsgraph update resulting in too many redraws. This patch limits the updates to when workbench shown in texture mode in any visible screen. There are still cases where too many updates are created. For example when there are a Cycles render viewport and a Workbench texture viewport on the same screen. This fix is meant as a workaround. The actual fix should add a mechanism to the depsgraph and the viewports should check if they need to be redrawn. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D7830
2020-05-11Fix T74713: Unpredictable active texture node for WorkbenchSergey Sharybin
The selection operator was not being correctly marked for update. This restores the behavior seen in blender 2.79.
2020-05-11Fix T74713: Unpredictable active texture node for WorkbenchSergey Sharybin
The selection operator was not being correctly marked for update. This restores the behavior seen in blender 2.79.
2020-05-08Cleanup: callback naming for search button & update doc-stringsCampbell Barton
Callback naming didn't always make it clear which function updated the search contents and the function used to execute the action.
2020-05-07Cleanup: split search menu separator argument into own functionCampbell Barton
2020-05-05Cleanup: use int instead of short for lasso array lengthCampbell Barton
There was no reason to use a short here, this was just a convention from existing code.
2020-05-04Cleanup: rename mcords to mcoordsCampbell Barton
- 'coords' is an abbreviation for coordinates, not 'cords'. - Rename 'moves' to 'coords_len'.
2020-04-14UI: improve menu search with dimmed menu prefixCampbell Barton
- Show dimmed text for the menu entries leading up to the menu item. - Show icons between the menu text and menu item. - Use unicode right pointing triangle instead of arrow.
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Including "BLI_listbase.h" for LISTBASE_FOREACH macroDalai Felinto
These headers are not needed right away, but will be in the upcoming commit.
2020-04-03Cleanup: use abbreviated names for unsigned types in editorsCampbell Barton
2020-03-24UI: add menu search functionality to operator search menuCampbell Barton
This has some advantages over operator search: - Some operators need options set to be usefully accessed. - Shows key bindings to access menus (for actions that don't have key bindings themselves). - Non operator actions such as check-boxes are also shown. - Menu items can control execution context, using invoke or execute where appropriate so we can control how the operator runs. Part of the design task T74157. This can be tested using the 'Experimental' preferences section or selected in the key-map editor.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2019-10-04Node Editor: Use new operator utilities for node selection and draggingJulian Eisel
Previous commit moved most of this code into more general/generic utility functions, so we can use that in the Node Editor now.
2019-10-01Cleanup: simplify node modal select implementationBrecht Van Lommel
Ref T63994
2019-08-27UI: fix some menus and popups not taking into account UI scale for paddingYevgeny Makarov
Differential Revision: https://developer.blender.org/D5581
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-23Revert "Fix T64660: no access to node connectors when a node is inside a ↵Bastien Montagne
layout frame." This reverts commit 59b7f3a16463f2286a8349028f15e7e7a3be06dc, which was causing T64933.
2019-05-16Fix T64660: no access to node connectors when a node is inside a layout frame.Bastien Montagne
Note that the same issue actually showed without a frame node, when trying to click-drag on a socket on its 'inside node' part, you would get same behavior. Only solution I can see here is to prevent Node selection to go on when user clicks on one of its sockets, there is no way afaik to make drag-from-socket to start if we keep select-node operator running modal, since both operators (NODE_OT_select and NODE_OT_link) use the same shortcut, if select (which is checked first, being a Tool) returns modal, then event is considered handled it seems, even though Passthrough is also returned...
2019-05-14Fix T63994: Node Editor: Move All Selected Nodes when dragging.Bastien Montagne
Left-click select broke that behavior, since it puts both action and select buttons on the same physical mouse button... To support this behavior again, we have to split selection process in two steps, hence make it modal... While I remain rather skeptical about that global design decision, and complexity it adds to many UI/UX areas, this solution ends up being OK-ish I think. Thanks to @brecht for some final tweaks on the patch.
2019-05-14Interface: Free argument callback for popupsJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4858
2019-05-06Node select: refactor, fix some inconsistent behaviors in socket selection.Bastien Montagne
Refactor a bit node selection code, mostly in the socket selection in one place 'extend' logic usage was inverted, deselection of other sockets/nodes was not working properly. Also now make node active when selecting a socket, this makes more sense and makes the NODE_OT_link_viewer macro much more useful (this is the only user of the 'socket select' feature currently, afaics).
2019-04-30Cleanup: make 'deselect_all' properties PROP_SKIP_SAVE.Bastien Montagne
Forgot to do that for some in previous commits, that kind of props are better with 'skip save' behavior (simpler to handle in keyconfigs).
2019-04-30Cleanup: use bool literal for booleans.Bastien Montagne
2019-04-30Select: Add 'deselect on nothing' to nodes selection.Bastien Montagne
Part of T63995.
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-26Cleanup: style, use braces for editor/spacesCampbell Barton
2019-03-22NodeEditor: Connect Viewer To Socket SelectionJeroen Bakker
Request from the Spring team. When compositing the CTRL-Shift Click on a node cycles the viewnode with an output socket. When you have many render layers you spend time cycling to the desired socket. This patch allows the user to CTRL-Shift Click on a socket to connect directly to that socket. Reviewed By: brecht Maniphest Tasks: T62785 Differential Revision: https://developer.blender.org/D4564
2019-03-21UI: replace button open event with activate on initCampbell Barton
No user visible change.
2019-03-20Fix T60815: drag & drop crash when search menu is opened immediately after.Brecht Van Lommel
Patch by matc, some further refactoring by me. Differential Revision: https://developer.blender.org/D4250
2019-03-13Cleanup: rename uiBlock.mx,my to bounds_offsetCampbell Barton
Use a name that related to block bounds calculation (mx/my are typically used for mouse x,y).
2019-03-08Cleanup: use doxy sections for node select APICampbell Barton
2019-03-07Tool System: use set/add/subtract for all lasso select operatorsCampbell Barton
2019-03-07Tool System: use set/add/subtract for all box select operatorsCampbell Barton
2019-03-05Tool System: use set/add/subtract for all circle select operatorsCampbell Barton
This applies changes from the 3D view circle select to other operators.
2019-03-05Nodes: move select all into a utility functionCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2018-12-20Fix T58404: Node/Socket grabbing with Lasso toolJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4108
2018-11-30Fix T58267: node socket grabbing not working well with box select tool.Brecht Van Lommel
2018-10-05UI: rename Border Select -> Box SelectCampbell Barton
See: T56648
2018-09-11Merge branch 'master' into blender2.8Campbell Barton
2018-09-11UI: split theme draw style into separate fieldCampbell Barton
Was using UI_BLOCK_LOOP to control draw style, this meant we couldn't use popup theme colors for cases where it the interface has the same purpose as a popup but happens not to use this flag.