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-04-30Refactor: Separate scrollers from text drawing in APIJacques Lucke
This is a continuation of rB7fdffd735ff24, where I separated the e.g. frame number drawing from scrollers internally. This patch changes the API, so that space draw handlers have to draw these numbers explicitely. This greatly simplifies the scrollers API for all spaces that just need scrollers without any frame numbers. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D4747
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-24Refactor: allow event handlers to have a poll functionJacques Lucke
Previously only a fixed bounding box could be used. This was not flexible enough. T63193 will benefit from this refactor. Reviewers: brecht, campbellbarton
2019-04-24Nodes: avoid slow and unecessary node group updates on file readBrecht Van Lommel
On file read we need to update group nodes in case the group they refer to has changed its inputs and outputs. This had O(n^2) time complexity and was updating all datablocks even if they did not change.
2019-04-24Cleanup: sort CMake include pathsCampbell Barton
2019-04-23Space_node: Add draw backdrop callback.Ray Molenkamp
Add a callback to allow custom node editors to draw their own backdrop. Differential Revision: https://developer.blender.org/D4709 Reviewed by: JacquesLucke
2019-04-21Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-20Cleanup: remove unused OpenGL functions, rename some for clarityBrecht Van Lommel
2019-04-18Cleanup: unused region init functionsCampbell Barton
2019-04-18UI: move region toggling to propertiesCampbell Barton
Each space had separate operators, duplicating logic. Use RNA properties instead so adding the ability to toggle other region types (floating redo region for eg) doesn't need to have an extra operator per space type. It's also nicer to show a check-box for something which can be toggled.
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
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-04-16Cleanup: trailing commasCampbell Barton
2019-04-16CMake: add library deps to CMakeLists.txtCampbell Barton
Tested to work on Linux and macOS. This will be enabled once all platforms are verified. See D4684
2019-04-16Fix T63562: wrong viewport updates after editing group node socketsBrecht Van Lommel
2019-04-14CMake: prepare for BLENDER_SORTED_LIBS removalCampbell Barton
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.
2019-04-09Cleanup: spellingCampbell Barton
2019-04-02UI: Collapsed nodes have the same width as uncollapsed nodesRobert Guetzkow
Fixes T63079. Differential Revision: https://developer.blender.org/D4617
2019-03-29Fix header text for muted collapsed nodes not being greyed out.Brecht Van Lommel
2019-03-28Fix T60719: muted nodes are not clearly visible.Robert Guetzkow
Now the entire node gets greyed out, instead of using a red header that is hard to distinguish from other nodes with similar header colors. Differential Revision: https://developer.blender.org/D4597
2019-03-28Fix T63040: Resizing node has offsetJacques Lucke
This broke in rB6500b31728d870506207d9d70837b171cbef32ea. Reviewers: brecht Differential Revision: https://developer.blender.org/D4607
2019-03-26Cleanup: style, use braces for editor/spacesCampbell Barton
2019-03-25Fix T61577: collapse nodes hide arrow hit zone overlaps with node sockets.Brecht Van Lommel
Patch by EitanSomething. Differential Revision: https://developer.blender.org/D4423
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-20Fix T62788: drop image into node editor puts node at wrong location.Brecht Van Lommel
It should be under the mouse cursor but was wrong for high DPI. Also put the cursor in the header now so it's easy to reposition.
2019-03-19GPencil: Rename annotation functionsAntonioya
The annotation drawing functions were using gpencil prefix and it's better to keep all annotation code separated to avoid confusion.
2019-03-17UI: add light/world settings in shader node editor.Brecht Van Lommel
Material was already there. Implementation was changed so it's just a single line of code to adapt a panel to the node editor.
2019-03-16Python API: add Python-defined node groups for shaders and compositing.Miguel Porces
This was already supported for Cycles shader nodes, but now also works for Eevee and compositing nodes. Instead of a generic NodeCustomGroup, now there is ShaderNodeCustomGroup and CompositorNodeCustomGroup that can be subclassed and registered. Differential Revision: https://developer.blender.org/D4370
2019-03-16Fix ID user counting issues with NodeCustomGroup.Miguel Porces
User counting now happens before init() and after free() methods, so that the ID users are in a valid state when Python might modify them. ID user counting was moved into node.c and simplified. Patch by Miguel with further refactoring by Brecht. Ref D4370.
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-08Cleanup: use plural names for Main listsCampbell Barton
Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning.
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-27Cleanup: file rename lamp -> lightCampbell Barton
2019-02-27DNA: rename Lamp -> LightCampbell Barton
- BKE_lamp -> BKE_light - Main.lamp -> light
2019-02-23Cleanup: GCC redundant declarationsCampbell Barton
Previous waning suppression was only tested with clang.
2019-02-20Node headers should not respect theme alpha valuesSebastian Parborg
As pointed out in https://developer.blender.org/rB558d7dd90e56ca1b4dbf1b7b8b7b555791821148, the theme color alpha should not be taken into account when rendering node headers. Reviewed By: Brecht Van Lommel Differential Revision: https://developer.blender.org/D4338
2019-02-20WM: support dynamic keymap handlersCampbell Barton
Add getter callback support for 'WM_HANDLER_TYPE_KEYMAP' type handlers this is needed for key-maps which change based on the active tool. Replaces 'sneaky_handler' hack which temporarily inserted a handler.
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-15Fix T61572: Crash when copy/pasting nodesPhilipp Oeser
was caused by rBc6e3a20ab60b, copied node was actually added to the nodetree, resulting in an endless loop. Reviewers: brecht Differential Revision: https://developer.blender.org/D4360
2019-02-13Fix T61506: Wrong user counting with ID properties in pynodes.Bastien Montagne
Nuke away old nodeCopyNode(), much better to use new BKE_node_copy_ex(), which behaves as expected for the various optional flags that can be passed. This also removes the need to handle ID refcounting in calling code (ugly!) and allows us to remove an even uglier name from our codebase! :D Note that this fixes three related issues actually, that bug was also affecting copy/paste of nodes, and 'Separate with copy' operator (the latter being actually fully wrong, since it was not refcounting anything, not even node->id pointer...).
2019-02-12Fix T61428: Node editor's 'Interface' panel shows in all tabsPhilipp Oeser
Reviewers: brecht Maniphest Tasks: T61428 Differential Revision: https://developer.blender.org/D4343
2019-02-11Fix T61376 Group Node Node Editor theme property is missing alpha channelSebastian Parborg
It is now possible to adjust the group node background alpha. The defaults are the same as before, but you can now adjust the alpha level via the theme preferences (and the alpha value is no longer hard coded).