Age | Commit message (Collapse) | Author |
|
Caused by D15961, which changed the behavior of `dpi` and
`pixel_size`.
Instead of using a single value for `dpifac` (renamed to `dpi_fac`),
use a value depending on whether we want pixel density or line
width.
This patch has the side-effect that the line width from the user
preferences is now respected. It seems more logical that way, but I
can't test with a hi-dpi display to see how that looks.
If we want to get the old behavior back, we can just get rid of
`prefs_line_width()` and replace its calls with `dpi_fac()`.
A similar issue was also fixed for Icon Viewer.
|
|
Change the global poll function to check that the node tree is not
from a library, disabling most Node Wrangler operators.
This fixes the issue, not only for material nodes as in the original
report, but also on compositing node trees from linked scenes and
geometry nodes.
|
|
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D16234
|
|
Part of T80730
|
|
Revert part of rBAad1966474ed2 in nw_check() which was giving no benefit
afaict (and instead tried to access space.node_tree for Spaces other
than the Node Editor, spamming the console with errors).
Differential Revision: https://developer.blender.org/D15770
|
|
Currently, the nodes in the Switch menu (Shift+S) are generated from Node
Wrangler's own long static list of categories and nodes, which often goes
out of sync when Blender changes.
This changes to using the node_categories_iter utility which uses the correct
list of available nodes from nodeitems_builtins.py.
The submenu classes are now procedurally generated and registered in the same
fashion as the add menu, but just with a different operator in their draw
function.
Removing the static lists required a couple changes outside of the Switch menu.
Mostly having to compare types using the verbose node.rna_type.identifier.
Includes improvements on the original patch by Benni Merz.
|
|
No need to subtract scroll bar widths as they are hidden by default in 2.80+.
|
|
The Operator is internally called "Swap Links" and the manual also calls it
"Swap Links" as it can swap inputs and outputs.
Differential Revision: https://developer.blender.org/D10031
|
|
Add utility function to check for the first output that is actually enabled
rather than always using the first output of a node.
The previous behavior would lead to confusing situations, where a mix/math
node was added but didn't seem to be connected, when the first output was
currently disabled.
Differential Revision: https://developer.blender.org/D14251
|
|
* The added nodes are now top aligned with the nodes they belong to. This looks
nicer and works independent of screen DPI.
* There is a vertical offset based on the socket the added nodes are connected
to. This prevents nodes from overlapping too much, when executing the texture
setup several times in a row.
* Ignore disabled sockets, which would create nodes seemingly connected to
nothing.
Differential Revision: https://developer.blender.org/D15031
|
|
Differential Revision: https://developer.blender.org/D15350
|
|
Differential Revision: https://developer.blender.org/D15320
|
|
Differential Revision: https://developer.blender.org/D15373
|
|
When using the node.nw_link_out operator (O key) in a world node tree,
a material output would be created instead of a world one.
|
|
This implements the use of shortcut `O` to connect the first geometry
output of the active node, to the group output.
Right now, only geometry is concerned, and the operator is cancelled
if another output type is found, such as an `int`.
|
|
|
|
|
|
Ref D14914
|
|
Update for changes in Blender.
|
|
Differential Revision: https://developer.blender.org/D14668
|
|
Differential Revision: https://developer.blender.org/D14285
|
|
Differential Revision: https://developer.blender.org/D14134
|
|
See T95597
|
|
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D5801
|
|
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D5801
|
|
|
|
Differential Revision: https://developer.blender.org/D13023
|
|
Differential Revision: https://developer.blender.org/D12076
|
|
Principled texture setup with relative path option would lead to this,
silently use an absolute path instead like other Blender operators.
Differential Revision: https://developer.blender.org/D12221
|
|
|
|
Rewrite `nice_hotkey_name()` to use a `dict` instead of a loop over a
list of tuples.
Reviewed by: sybren
Differential Revision: https://developer.blender.org/D11943
|
|
The ctr+shift+LMB was in conflict with the new viewer node introduced in
rB9009ac2c3d62e0d30d96b8d35ff5ff620cfe053b.
Since the builtin viewer node does not support viewport visualization
yet, the operator is still kept in node wrangler. Just the shortcut is
changed to shift+alt+LMB.
Differential Revision: https://developer.blender.org/D11786
|
|
Node Wrangler can now be used in the Geometry Nodes editor.
Summary of the changes for Geometry Nodes:
* Pressing ctrl+shift+LMB will now connect the geometry socket of the
node (if it exists) to the output socket of the modifier. This is
similar to the functionality already present for shader and
compositor nodes.
* Nodes can be merged using a Join Geometry (default) or Boolean node.
* `LinkToOutput` and `ReloadImages` have been disabled, because they
don't make sense for geometry nodes.
* Other operators work like they do for the other node tree types.
In D9748 and in chat it was accepted that this patch can be merged
into the 2.93 release branch, even though we are quite late in the
release process already.
Differential Revision: https://developer.blender.org/D9748
|
|
Differential Revision: https://developer.blender.org/D7567
|
|
|
|
Differential Revision: https://developer.blender.org/D6956
Reviewers: gregzaal
|
|
Differential Revision: https://developer.blender.org/D7461
|
|
Some of these must be invoked rather than executed to show a file browser or
popup menu.
|
|
|
|
|
|
|
|
There were legacy checks remaining for Blender Internal, however now we can
assume that any renderer using the native shader node tree is also using Cycles
and Eevee shading nodes. Custom shader nodes will have a different type of node
tree.
|
|
Caused by rBA8130de948d78.
Maniphest Tasks: T73768
Differential Revision: https://developer.blender.org/D6831
|
|
|
|
Texture Setup (Ctrl+Shift+T)
Using absolute paths for texture images break materials if the project is moved to another location or computer. Relative paths are also the default option in Image Texture Node's file view.
This adds a toggle to use relative paths when adding a texture setup for Principled BSDF. The option is selected by default to match Image Texture Node's behavior.
Tested on Blender v2.81.16 (Windows)
Reviewed By: lichtwerk, mont29
Maniphest Tasks: T63635
Differential Revision: https://developer.blender.org/D6756
|
|
|
|
Reported by @jonimercado. Thanks!
|
|
D5867 by Himanshi Kalra (calra), thx!
|
|
Since CTRL+LMB is now taken by 'cut links' in blenders default keymap,
this was conflicting with nodewranglers 'lazy connect' and unfortunately
we have to step aside here.
This commit shifts shortcuts:
lazy connect (CTRL+LMB --> ALT+RMB)
lazy connect with menu (CTRL+SHIFT+LMB --> ALT+SHIFT+RMB)
lazy mix (ALT+RMB --> CTRL+SHIFT+RMB)
This keeps the two 'lazy Connect' on a common "base" key and just moves
'lazy mix'
|
|
Differential Revision: https://developer.blender.org/D5164
|