Skip to content

Commit 1874caf

Browse files
Removed test for EnableObjectTraversal flag in DR_TRAVERSE_CB macro
1 parent 4690ad6 commit 1874caf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

include/drjit/traversable_base.h

-14
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@ struct DRJIT_EXTRA_EXPORT TraversableBase : public nanobind::intrusive_base {
153153
static_assert( \
154154
std::is_base_of<drjit::TraversableBase, \
155155
std::remove_pointer_t<decltype(this)>>::value); \
156-
/* \
157-
* Only traverse the objects for frozen functions, since \
158-
* accidentally traversing the scene in loops or vcalls can cause \
159-
* issues. \
160-
*/ \
161-
if (!jit_flag(JitFlag::EnableObjectTraversal)) \
162-
return; \
163156
if constexpr (!std::is_same_v<Base, drjit::TraversableBase>) \
164157
Base::traverse_1_cb_ro(payload, fn); \
165158
DRJIT_MAP(DR_TRAVERSE_MEMBER_RO, __VA_ARGS__) \
@@ -179,13 +172,6 @@ struct DRJIT_EXTRA_EXPORT TraversableBase : public nanobind::intrusive_base {
179172
static_assert( \
180173
std::is_base_of<drjit::TraversableBase, \
181174
std::remove_pointer_t<decltype(this)>>::value); \
182-
/* \
183-
* Only traverse the objects for frozen functions, since \
184-
* accidentally traversing the scene in loops or vcalls can cause \
185-
* issues. \
186-
*/ \
187-
if (!jit_flag(JitFlag::EnableObjectTraversal)) \
188-
return; \
189175
if constexpr (!std::is_same_v<Base, drjit::TraversableBase>) \
190176
Base::traverse_1_cb_rw(payload, fn); \
191177
DRJIT_MAP(DR_TRAVERSE_MEMBER_RW, __VA_ARGS__) \

0 commit comments

Comments
 (0)