Browse Source

SceneTools: no need to preserve this expressions on a no-assert build.

Autocomplete hiccup? Or did I originally increment inside that
assert expression??
sceneconverter
Vladimír Vondruš 4 years ago
parent
commit
41d9616c18
  1. 2
      src/Magnum/SceneTools/OrderClusterParents.cpp

2
src/Magnum/SceneTools/OrderClusterParents.cpp

@ -118,7 +118,7 @@ void orderClusterParentsInto(const Trade::SceneData& scene, const Containers::St
which nodes are parented more than once (OTOH maybe that's which nodes are parented more than once (OTOH maybe that's
unnecessary extra work which isn't desired to be done here but unnecessary extra work which isn't desired to be done here but
should be instead in a dedicated cycle/sparse checker utility?) */ should be instead in a dedicated cycle/sparse checker utility?) */
CORRADE_ASSERT_OUTPUT(outputOffset < parents.size(), CORRADE_ASSERT(outputOffset < parents.size(),
"SceneTools::orderClusterParents(): hierarchy is cyclic", ); "SceneTools::orderClusterParents(): hierarchy is cyclic", );
parentsToProcess[outputOffset + 1] = children[j]; parentsToProcess[outputOffset + 1] = children[j];
mappingDestination[outputOffset] = children[j]; mappingDestination[outputOffset] = children[j];

Loading…
Cancel
Save