[Bf-blender-cvs] [84af1eaa923] master: Fix invalid return value assignment in getEdgeVertexIndices

Campbell Barton noreply at git.blender.org
Wed Jun 9 18:23:49 CEST 2021


Commit: 84af1eaa923bf61492b360a9ffbc45ef4f2f7aeb
Author: Campbell Barton
Date:   Thu Jun 10 01:55:40 2021 +1000
Branches: master
https://developer.blender.org/rB84af1eaa923bf61492b360a9ffbc45ef4f2f7aeb

Fix invalid return value assignment in getEdgeVertexIndices

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

M	intern/opensubdiv/internal/topology/mesh_topology.cc

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

diff --git a/intern/opensubdiv/internal/topology/mesh_topology.cc b/intern/opensubdiv/internal/topology/mesh_topology.cc
index 9197a5c1b54..29c387876ef 100644
--- a/intern/opensubdiv/internal/topology/mesh_topology.cc
+++ b/intern/opensubdiv/internal/topology/mesh_topology.cc
@@ -112,7 +112,7 @@ void MeshTopology::getEdgeVertexIndices(int edge_index, int *v1, int *v2) const
 
   if (edge_index >= edges_.size()) {
     *v1 = -1;
-    *v1 = -1;
+    *v2 = -1;
     return;
   }



More information about the Bf-blender-cvs mailing list