Commit Graph

7614 Commits

Author SHA1 Message Date
8038d3c3b0 Fix #104510: X3D & BVH import error with Python 3.11
Remove unsupported 'rU' for file writing.
v3.5.1
2023-04-24 15:05:24 +02:00
d4d32b3731 Pose library: fix context menu
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.
2023-03-30 11:15:36 +02:00
edb61b0249 Fix #104480: Node Wrangler: Lazy Mix on float outputs in GN error
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.
v3.5.0
2023-03-22 00:10:29 +01:00
96e552120d FBX export: Option to prioritize active color at export.
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.
2023-03-15 12:06:15 +01:00
48f52ddfc3 Pose library: fix asset creation operator poll when no object active
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
2023-03-07 17:41:58 +01:00
35d087e51c Fix #104467: Archimesh boolean doesn't work in 3.5
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
2023-03-06 14:51:23 +01:00
d936a948e8 glTF exporter: add hook to change attribute 2023-03-06 10:24:55 +01:00
f592ca1059 Fix #104438 : Lazy mix connects wrong sockets
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
2023-03-05 11:48:00 +01:00
32ce8e8903 Skinify: fix shape generation
The script was using the old `scene.objects.active` API instead of
`view_layer.objects.active`.
2023-03-01 01:36:52 +01:00
6b17358aa2 Fix #104458: Extra Objects Single vert Mirror fails with Translation
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.
2023-03-01 01:10:10 +01:00
3e91cf793a Fix #103474: Amaranth: Open Node Source Image not working
The check for editor type was wrong.
2023-02-28 15:41:29 +01:00
664e2d5e0f Fix #104431: Pie Menu Editor Switch: Can't switch to File Browser
Apparently broke with 70474e1a7cc4

The enum values change depending on the context.
2023-02-28 11:23:45 -03:00
dd91f21836 Archimesh: fix floor creation
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
2023-02-28 10:39:59 +01:00
8b3c6b7c76 Fix #104441: Bsurfaces: get modifiers with their type instead of name
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
2023-02-27 22:58:51 +01:00
b900162437 Skinify: get rid of an operator override which crashed the script
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.
2023-02-27 21:51:30 +01:00
8db31f5cb9 Assign modifiers to variables instead of getting them by name
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.
2023-02-27 21:51:16 +01:00
dda85f9ac5 Fix Node Wrangler issues with texturecan texture imports
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
2023-02-27 17:53:57 +01:00
ad26f1f421 VR Scene Inspection: I18n: enable translation of UI messages
Most UI messages are extracted automatically, but some more complex
ones need to be manually.

Pull Request #104432
2023-02-27 08:39:51 +01:00
14b248aac0 Cleanup: fix a few issues in UI messages
- 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
2023-02-23 16:42:37 +01:00
afed066115 glTF exporter: typo in morph tangent export 2023-02-23 13:01:28 +01:00
60a4f5fa7d Node wrangler: fix reliance on legacy mix node
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
2023-02-22 18:02:52 +01:00
2213c0078c Fix #103912: Node wrangler adds legacy mix nodes
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
2023-02-20 12:15:06 +01:00
16f4da4996 Node Wrangler: Cleanup: fix wrong comment 2023-02-20 11:01:43 +01:00
19e187753a Revert "Node Wrangler: remove obsolete Geometry Nodes preview"
This reverts commit 48320b2d9f.
2023-02-20 11:00:02 +01:00
6f941d0116 Amaranth: Fix tests
Missing check for `bl_rna` in panel.
2023-02-17 20:31:10 +01:00
6a404b3b69 Amaranth: Bump version
Also remove old `tracker_url` info.
2023-02-17 19:20:30 +01:00
4f5ff42eab Amaranth: Move timecode into Frame Range panel
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.
2023-02-17 19:20:08 +01:00
a204e2146b Amaranth: Layout tweaks to render resolution label
* Move into a two-column layout.
* Move region size into a new line so it fits in narrow editors.
* Gray out so it doesn't standout as much.
2023-02-17 18:30:23 +01:00
57a3842acb Amaranth: Move ViewLayer Samples Override to a subpanel
* Use a subpanel instead of a box.
* Simplify list, use column split.
* Cleanup
2023-02-17 18:28:44 +01:00
b89eb923ac Fix #104854: Storypencil warning II
I sent by error the wrong fix commit.
2023-02-17 10:26:37 +01:00
765749e2ea Fix #104854: Storypencil poll shows warning error 2023-02-17 10:22:17 +01:00
d31fa71a6b glTF exporter: fix object parented to bone TRS 2023-02-16 17:17:47 +01:00
80e7acbe26 Cleanup: delete .arcconfig
This no longer works without developer.blender.org
2023-02-15 12:32:42 +01:00
9060f1e1c8 Fix #104407: Sun Position: shader error when enabling
Caused by 5c22e77e.

A name for the `shader_interface` is required in OpenGL.
2023-02-13 13:39:44 -03:00
35d72c2da0 Fix 104401: Import .ase files with swatch groups
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
2023-02-13 10:45:14 +01:00
69beaa0e43 glTF: Manage new mirror texture option of Blender 3.5 2023-02-11 09:37:03 +01:00
599f2c4fda glTF exporter: Fix export after reloading script 2023-02-11 09:34:19 +01:00
c6c45a843e glTF exporter: Fix variable name collision 2023-02-11 09:33:10 +01:00
48b114c178 glTF exporter: Round normals to avoid vertex split 2023-02-11 09:31:50 +01:00
0554223a84 glTF exporter: Fix check for node_tree 2023-02-11 09:29:16 +01:00
38890b51d3 glTF exporter: filter_glob update when changing export type 2023-02-11 09:27:19 +01:00
8fb28124ba Magic UV: Get nodes with their types instead of names
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
2023-02-11 01:33:21 +01:00
5c22e77ea3 Fix #103838: fail to enable Lighting Sun Position addon on Metal
The `Shader` creation needs to be updated using `ShaderCreateInfo`.
2023-02-10 11:33:00 -03:00
caed9c9da5 Atomic Blender: Get nodes with their types instead of names
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
2023-02-09 23:02:28 +01:00
f5b0b65ed4 Fix #104036: Copy Attributes does not work on faces
The layout crashed because quotes were lacking around the operator name.
2023-02-09 22:01:34 +01:00
74b48c6018 Cleanup: fix a few typos in UI messages
Issues reported by @Joan-Pujolar in #43295.
2023-02-09 00:03:06 +01:00
78b0fc30b6 Rigify: bump version. 2023-02-07 17:54:26 +02:00
c0174c838b Docs: change Git URLs to point projects.blender.org instead of git.blender.org 2023-02-07 14:46:01 +01:00
bd6c69e3af Update references to the new projects platform and main branch 2023-02-07 14:18:58 +01:00
7d80f2f971 Fix T104326: FBX Import: material link b'TransparencyFactor' ignored. 2023-02-06 17:03:37 +01:00