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:
authorSergey Sharybin <sergey@blender.org>2022-02-10 17:51:19 +0300
committerSergey Sharybin <sergey@blender.org>2022-02-10 17:51:19 +0300
commit94f023023035492da824fb1f4df1067e1e1237f1 (patch)
treefae0a7b7b487f36cd484e2637d390c3f89ff843f /source/blender/blenkernel/BKE_subdiv_foreach.h
parent04d55038ee52fc1155cc0ece916d90fd535c2364 (diff)
Fix T95666: Crash when attempting multires linear subdivide
The crash was happening when the mesh had loose edges. Loose edges are not part of OpenSubdiv topology and hence should not be communicated to the refiner. Pass ta boolean flag indicating whether an edge is loose or not in the mesh foreach routines, which seems to be the easiest way.
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv_foreach.h')
-rw-r--r--source/blender/blenkernel/BKE_subdiv_foreach.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv_foreach.h b/source/blender/blenkernel/BKE_subdiv_foreach.h
index 7d9a589666a..001a4f9401b 100644
--- a/source/blender/blenkernel/BKE_subdiv_foreach.h
+++ b/source/blender/blenkernel/BKE_subdiv_foreach.h
@@ -74,6 +74,7 @@ typedef void (*SubdivForeachEdgeCb)(const struct SubdivForeachContext *context,
void *tls,
int coarse_edge_index,
int subdiv_edge_index,
+ bool is_loose,
int subdiv_v1,
int subdiv_v2);