Magic UV: Get nodes with their types instead of names #104402

Merged
nutti merged 1 commits from pioverfour/blender-addons:dp_fix_new_mat_issue_magicuv into main 2023-02-11 01:33:23 +01:00
Member

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

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
Damien Picard force-pushed dp_fix_new_mat_issue_magicuv from 8485a747dc to c7add56b08 2023-02-09 21:31:26 +01:00 Compare
Damien Picard requested review from nutti 2023-02-09 21:31:49 +01:00
nutti requested changes 2023-02-10 07:49:33 +01:00
nutti left a comment
Member

Thanks for your patch.
I have few requests for this patch.
Could you check my comments?

Thanks for your patch. I have few requests for this patch. Could you check my comments?
@ -3,3 +3,3 @@
__author__ = "Nutti <nutti.metro@gmail.com>"
__status__ = "production"
__version__ = "6.7"
__version__ = "6.8"
Member

Could you revert version to 6.7?
I'm considering to update the version when some patches are merged.

Could you revert version to `6.7`? I'm considering to update the version when some patches are merged.
pioverfour marked this conversation as resolved
@ -13,3 +13,3 @@
"Alexander Milovsky, Dusan Stevanovic, MatthiasThDs, "
"theCryingMan, PratikBorhade302",
"version": (6, 7, 0),
"version": (6, 8, 0),
Member

Same here.
Could you revert version to 6.7?
I'm considering to update the version when some patches are merged.

Same here. Could you revert version to `6.7`? I'm considering to update the version when some patches are merged.
pioverfour marked this conversation as resolved
Damien Picard force-pushed dp_fix_new_mat_issue_magicuv from c7add56b08 to cd5d278353 2023-02-10 10:20:08 +01:00 Compare
Author
Member

I’ve reverted to the previous version number. Do you want me to merge this or would you rather handle it yourself, since you’ve got another repo at GitHub and all?

I’ve reverted to the previous version number. Do you want me to merge this or would you rather handle it yourself, since you’ve got another repo at GitHub and all?
nutti approved these changes 2023-02-11 01:32:41 +01:00
nutti merged commit 8fb28124ba into main 2023-02-11 01:33:23 +01:00
Member

@pioverfour

Thanks for your patch. Merged.

Do you want me to merge this or would you rather handle it yourself, since you’ve got another repo at GitHub and all?

I sometime merge the changes from this repository to GitHub one.
If you want, you can send the patch to the repo at GitHub as well.

https://github.com/nutti/Magic-UV/pulls

@pioverfour Thanks for your patch. Merged. > Do you want me to merge this or would you rather handle it yourself, since you’ve got another repo at GitHub and all? I sometime merge the changes from this repository to GitHub one. If you want, you can send the patch to the repo at GitHub as well. https://github.com/nutti/Magic-UV/pulls
Damien Picard deleted branch dp_fix_new_mat_issue_magicuv 2023-02-11 19:08:32 +01:00
Author
Member

I sometime merge the changes from this repository to GitHub one.
If you want, you can send the patch to the repo at GitHub as well.

I’ll let you handle the GitHub side :)

> I sometime merge the changes from this repository to GitHub one. > If you want, you can send the patch to the repo at GitHub as well. I’ll let you handle the GitHub side :)
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104402
No description provided.