[Bf-blender-cvs] [40f9f82977a] tmp-workbench-rewrite2: Fix alpha cutout
Miguel Pozo
noreply at git.blender.org
Mon Jan 23 15:41:11 CET 2023
Commit: 40f9f82977a88126e021125c5a13082053483d97
Author: Miguel Pozo
Date: Mon Jan 23 15:20:41 2023 +0100
Branches: tmp-workbench-rewrite2
https://developer.blender.org/rB40f9f82977a88126e021125c5a13082053483d97
Fix alpha cutout
textured meshes where getting drawn twice!
===================================================================
M source/blender/draw/engines/workbench/workbench_mesh_passes.cc
===================================================================
diff --git a/source/blender/draw/engines/workbench/workbench_mesh_passes.cc b/source/blender/draw/engines/workbench/workbench_mesh_passes.cc
index d8bc3702c17..bc90f26b33d 100644
--- a/source/blender/draw/engines/workbench/workbench_mesh_passes.cc
+++ b/source/blender/draw/engines/workbench/workbench_mesh_passes.cc
@@ -97,6 +97,7 @@ void MeshPass::draw(ObjectRef &ref,
texture_subpass_map_.lookup_or_add_cb(TextureSubPassKey(texture, geometry_type), add_cb)
->draw(batch, handle);
+ return;
}
}
passes_[static_cast<int>(geometry_type)][static_cast<int>(eShaderType::MATERIAL)]->draw(batch,
More information about the Bf-blender-cvs
mailing list