Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAras Pranckevicius <aras@nesnausk.org>2022-04-27 22:09:27 +0300
committerAras Pranckevicius <aras@nesnausk.org>2022-05-01 20:10:21 +0300
commitc87f6242b952d3821d7bdbdd8075b27479791448 (patch)
tree24085e02fb20acbf5cf08a99f2a8cca1d274f01c /source/blender/io/wavefront_obj/importer/obj_import_mtl.hh
parent33518f9da160cf2d9e91dd7a69cd5788303dcca4 (diff)
Fix T97644: new 3.2 obj importer does not set blend mode for eevee
The old python importer had a "if do_transparency, set blend_method to BLEND" type of logic. This bit was missing in the new importer; it was only setting the eevee blend method when a transparency texture was present, but not in other cases of transparency (as driven by MTL "illum" mode). Reviewd By: Howard Trickey Differential Revision: https://developer.blender.org/D14783
Diffstat (limited to 'source/blender/io/wavefront_obj/importer/obj_import_mtl.hh')
-rw-r--r--source/blender/io/wavefront_obj/importer/obj_import_mtl.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/wavefront_obj/importer/obj_import_mtl.hh b/source/blender/io/wavefront_obj/importer/obj_import_mtl.hh
index 74bc9f21bc4..12bea1cdc5a 100644
--- a/source/blender/io/wavefront_obj/importer/obj_import_mtl.hh
+++ b/source/blender/io/wavefront_obj/importer/obj_import_mtl.hh
@@ -82,7 +82,7 @@ class ShaderNodetreeWrap {
/**
* Set values of sockets in p-BSDF node of the nodetree.
*/
- void set_bsdf_socket_values();
+ void set_bsdf_socket_values(Material *mat);
/**
* Create image texture, vector and normal mapping nodes from MTL materials and link the
* nodes to p-BSDF node.