diff options
Diffstat (limited to 'source/blender/freestyle/intern')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp | 2 | ||||
-rw-r--r-- | source/blender/freestyle/intern/stroke/ChainingIterators.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp index 2b43e913b3d..388c2f35774 100644 --- a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp +++ b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp @@ -376,7 +376,7 @@ static void prepare(Render *re, ViewLayer *view_layer, Depsgraph *depsgraph) {FREESTYLE_FE_EXTERNAL_CONTOUR, 0}, {FREESTYLE_FE_EDGE_MARK, 0}, }; - int num_edge_types = sizeof(conditions) / sizeof(struct edge_type_condition); + int num_edge_types = ARRAY_SIZE(conditions); if (G.debug & G_DEBUG_FREESTYLE) { cout << "Linesets:" << endl; } diff --git a/source/blender/freestyle/intern/stroke/ChainingIterators.cpp b/source/blender/freestyle/intern/stroke/ChainingIterators.cpp index 271db48aabe..2b2ab0dc14a 100644 --- a/source/blender/freestyle/intern/stroke/ChainingIterators.cpp +++ b/source/blender/freestyle/intern/stroke/ChainingIterators.cpp @@ -169,7 +169,7 @@ int ChainSilhouetteIterator::traverse(const AdjacencyIterator &ait) Nature::VALLEY, Nature::RIDGE, }; - int numNatures = sizeof(natures) / sizeof(Nature::EdgeNature); + int numNatures = ARRAY_SIZE(natures); for (int i = 0; i < numNatures; ++i) { if (getCurrentEdge()->getNature() & natures[i]) { int n = 0; |