@@ -947,6 +947,7 @@ void FlatVariables::traverse_with_registry(nb::handle h, TraverseContext &ctx) {
947
947
continue ;
948
948
949
949
// WARN: very unsafe cast!
950
+ // We assume, that any object added to the registry inherits from TraversableBase.
950
951
auto traversable = (drjit::TraversableBase *) ptr;
951
952
auto self = traversable->self_py ();
952
953
@@ -988,6 +989,7 @@ void FlatVariables::assign_with_registry(nb::handle dst) {
988
989
continue ;
989
990
990
991
// WARN: very unsafe cast!
992
+ // We assume, that any object added to the registry inherits from TraversableBase.
991
993
auto traversable = (drjit::TraversableBase *) ptr;
992
994
auto self = traversable->self_py ();
993
995
@@ -1071,6 +1073,7 @@ static void traverse_with_registry(const char *op, TraverseCallback &tc,
1071
1073
continue ;
1072
1074
1073
1075
// WARN: very unsafe cast!
1076
+ // We assume, that any object added to the registry inherits from TraversableBase.
1074
1077
auto traversable = (drjit::TraversableBase *) ptr;
1075
1078
auto self = traversable->self_py ();
1076
1079
@@ -1093,6 +1096,7 @@ static void traverse_with_registry(const char *op, TraverseCallback &tc,
1093
1096
continue ;
1094
1097
1095
1098
// WARN: very unsafe cast!
1099
+ // We assume, that any object added to the registry inherits from TraversableBase.
1096
1100
auto traversable = (drjit::TraversableBase *) ptr;
1097
1101
auto self = traversable->self_py ();
1098
1102
0 commit comments