The Pose Library context menu was broken in the 3D Viewport's template
view by a958ae36e8cbe687c77f77b375a2dd21c01d271d.
That commit removed `asset_handle` from the context, and added
`active_file`, so now the pose library context menu code uses that instead.
Trying to connect two float outputs with the Lazy Mix operator failed
because there is no MIX mode for math nodes, which are used to mix
float values. This was caused by f592ca10.
A better fix may still need to be found to get a more consistent
behavior.
Some other software discard other color attributes besides the first one -
so the option to prioritize active_color to be exportred first will be
helpful in these cases. It is especially important since currently there
is no option to move color attributes around in Blender.
Explained it in details here:
https://projects.blender.org/blender/blender/issues/104827
To solve that I've added that option in FBX exporter.
When the `POSELIB_OT_create_pose_asset` operator was displayed in the
UI without active object, for instance pressing F3 after deleting an
object, the `poll()` method tried to access `None` object, leading to
an `AttributeError`. This is now properly checked for.
Pull Request: https://projects.blender.org/blender/blender-addons/pulls/104466
I introduced the bug in dd91f21836 when I overlooked an error that was
caught in a try... expecpt block, where context was not defined.
Pull Request #104468
Because the new mix nodes have different modes, the correct output
socket to connect is not just the first one, but the first enabled one.
There were already some checks in place for this, but apparently not yet
in all the needed places.
The current state of the code for the "Merge Nodes" operator is
terrible, and should probably be refactored in a future update. It is
becoming very hard to maintain.
Pull Request #104457
Using hardcoded names to retrieve modifiers can result in errors if
the user has enabled UI translation, because the modifier may not
have the expected English name if the UI is translated.
The option to create a floor was broken for a long time, because it
relied on the presence of a Diffuse BSDF in a new material, however it
has been replaced by the Principled BSDF long ago.
Additionally, use the data API to create the modifiers instead of the
ops API, and assign nodes to variables instead of getting them by
name, which will not work any more if the UI is translated.
Pull Request #104446
Using hardcoded names to retrieve materials can result in errors if
the user has enabled UI translation, because the new materials may not
have the expected English names.
Instead, we retrieve the materials using their types (SHRINKWRAP or
SUBSURF, for example).
Pull Request #104443
This override serves no apparent purpose. The script broke between
Blender 2.83 and 2.90, and the mesh generated by the last working
version is identical with or without this override.
Using hardcoded names to retrieve modifiers can result in errors if
the user has enabled UI translation, because the new modifiers may not
have the expected English names if the UI is translated.
So, use the data API to create the modifiers instead of the ops API,
and assign nodes to variables instead of getting them by name.
Before this change, if you tried to "Add Principled Setup" for some
texturecan.com materials, Node Wrangler used e.g.
`metal_0010_normal_directx_1k.png` for the normal map.
However Blender wants OpenGL style normal maps. With this change it
now correctly picks `metal_0010_normal_opengl_1k.png`.
Additionally, this change adds a (very) short README with instructions
for how to run the Node Wrangler tests.
Pull Request #104445
- Replace "UV's" by "UVs"
The apostrophe is not a mark of plural but of possessive in English.
- "generic [coordinate] values"
Likely a copy / paste mistake
There were still some cases were implicitly the code relied on the
legacy mix node instead of the new one. Hopefully these are the last ones.
Pull Request #104427
Node wrangler still added legacy mix nodes in the nw_merge_nodes
operator. It has now been updated to use the new general 'Mix' node for
shader nodes and geometry nodes.
Fixes#103912
Pull Request #104425
To be more consistent with Render Resolution info in Format panel.
* Rename "Timeline Extra Info" to "Time Extra Info"
* Move from Status Bar into Frame Range panel in Output properties
* Add inside a box, similar to how it's done in the VSE.
The current version of Import Palettes throws a `KeyError` when importing .ase files that have swatch groups in them.
This patch accounts for these.
Co-authored-by: blastframe <kevin@blastframe.com>
Pull Request #104405
Using hardcoded names to retrieve nodes can result in errors if the
user has enabled UI translation, because the new nodes may not have
the expected English names.
Instead, we retrieve the nodes using their types (BSDF_PRINCIPLED or
OUTPUT_MATERIAL).
Ref blender/blender#104145
Co-authored-by: Damien Picard <dam.pic@free.fr>
Pull Request #104402
Using hardcoded names to retrieve nodes can result in errors if the
user has enabled UI translation, because the new nodes may not have
the expected English names.
Instead, we retrieve the nodes using their types (BSDF_PRINCIPLED or
OUTPUT_MATERIAL).
Ref blender/blender#104145
Co-authored-by: Damien Picard <dam.pic@free.fr>
Pull Request #104403