Fixed bug in the "Rename All Textures by Hash" operator that was causing some textures to be skipped.
Updated the "Rename All Textures by Hash" operator so that it doesn't create duplicate texture names anymore. Now any duplicate textures are automatically merged into one image ID, and duplicate images are removed.
Fixed an issue with the Set Blend Mode operator where it was producing an unintended error message if no object was selected.
Rewrote the 'Copy Dfiuse Texture to Material Name' operator so that it can handle materials with multiple diffuse textures. If a material contains more than 1 texture, the operator will now append all of them to the material name. If a material with the new name already exists,, the operator will assign that existing material to that material slot, so that duplicate materials aren't created. The operator also compares the node count in materials when checking for an existing one with the same name, and if the node count is different, the amount of nodes will be appended to the material name to keep it as a separate material and avoid replacing a material with the same name but different node count.
No changelog for this release.
Fixed small bug in the new Isolate by Material Trait operator. If the operator was used on a mesh object that had already been isolated and separated before, it was re-isolating it into another object, and then leaving an empty object (with no polygons) as well. The object is now correctly skipped if it detects that all of the mesh's faces are about to be isolated.
Changes
New features
Added a new operator: Isolate by Material Trait. This new operator allows you to separate faces in meshes to a separate object automatically based on certain traits. Currently, two traits are supported - Emissive and Transparent. You can optionally have the operator move the isolated geometry to a dedicated collection (for easier finding).
Updated the 'HDR Lightmap' material template so that it correctly preserves any HDR/EXR lightmap texture that was already present in the material prior to applying the template. If no HDR/EXR lightmap is found in the material, the old behavior will kick in and the operator will instead try to find an HDR lightmap stored elsewhere in the Blender file.
Fixed an issue in the update_alpha_settings() function where an incorrect comparison operator was being used.
Added fixes for Blender 4.2+ related to 4.2's changes to material alpha settings. In 4.2, Alpha Clip was removed outright, instead accomplished via a "Greater Than" math node. Alpha Blend and Hashed are also now set via a new property, surface_render_method. The "Set Blend Mode" and Material Templates features in the addon were updated to work properly for these changes in 4.2+. There should not be any noticeable change for older versions.
Updated the manifest TOML file to remove unapproved repository tags.
v1.3.1: Added two new material templates "Mirror UV" and "Unmirror UV", for instantly adding a mirror / ping pong effect to the UV Map in all materials in all selected objects. The Unmirror template can be used to remove the effect afterward, with the caveat that it will only work if the effect was originally applied by this addon itself. (ie. The Unmirror template won't work if the ping pong effect was added manually by the user or was created during import of the model into Blender)