[Bf-blender-cvs] [607c7fc4170] cycles_procedural_api: fix for missing detection of required mesh tesselation

Kévin Dietrich noreply at git.blender.org
Sat Oct 3 04:18:24 CEST 2020


Commit: 607c7fc417050a56b2b351937977363ed060f224
Author: Kévin Dietrich
Date:   Sat Oct 3 00:11:45 2020 +0200
Branches: cycles_procedural_api
https://developer.blender.org/rB607c7fc417050a56b2b351937977363ed060f224

fix for missing detection of required mesh tesselation

===================================================================

M	intern/cycles/render/geometry.cpp

===================================================================

diff --git a/intern/cycles/render/geometry.cpp b/intern/cycles/render/geometry.cpp
index 5c519da856e..de063cea733 100644
--- a/intern/cycles/render/geometry.cpp
+++ b/intern/cycles/render/geometry.cpp
@@ -1275,7 +1275,7 @@ void GeometryManager::device_update(Device *device,
 
         /* Test if we need tessellation. */
         if (mesh->subdivision_type != Mesh::SUBDIVISION_NONE && mesh->num_subd_verts == 0 &&
-            mesh->subd_params) {
+            mesh->get_subd_params()) {
           total_tess_needed++;
         }
 
@@ -1310,7 +1310,7 @@ void GeometryManager::device_update(Device *device,
 
       Mesh *mesh = static_cast<Mesh *>(geom);
       if (mesh->subdivision_type != Mesh::SUBDIVISION_NONE && mesh->num_subd_verts == 0 &&
-          mesh->subd_params) {
+          mesh->get_subd_params()) {
         string msg = "Tessellating ";
         if (mesh->name == "")
           msg += string_printf("%u/%u", (uint)(i + 1), (uint)total_tess_needed);



More information about the Bf-blender-cvs mailing list