distort: Fix unprotected debug output

This commit is contained in:
rdb 2024-08-14 19:09:08 +02:00
parent 78ace53dbe
commit 8d1524b675

View File

@ -451,9 +451,11 @@ recompute_geom_node(const WorkingNodePath &np, LMatrix4 &rel_mat,
int num_geoms = node->get_num_geoms();
for (int i = 0; i < num_geoms; i++) {
PT(Geom) geom = node->modify_geom(i);
distort_cat.debug()
<< " " << *node << " got geom " << geom
<< ", cache_ref = " << geom->get_cache_ref_count() << "\n";
if (distort_cat.is_debug()) {
distort_cat.debug()
<< " " << *node << " got geom " << geom
<< ", cache_ref = " << geom->get_cache_ref_count() << "\n";
}
geom->test_ref_count_integrity();
recompute_geom(geom, rel_mat);
}