From 33cef0aca37e30c90b49950f9a505f10fd727f50 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 29 Mar 2024 17:15:43 +0100 Subject: [PATCH] pgraph: Disable non-working `__traverse__()` on NodePath --- panda/src/pgraph/nodePath.h | 2 +- panda/src/pgraph/nodePath_ext.I | 4 ++-- panda/src/pgraph/nodePath_ext.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/pgraph/nodePath.h b/panda/src/pgraph/nodePath.h index 6211b18127..b8f82f779f 100644 --- a/panda/src/pgraph/nodePath.h +++ b/panda/src/pgraph/nodePath.h @@ -947,7 +947,7 @@ PUBLISHED: PY_EXTENSION(NodePath find_net_python_tag(PyObject *keys) const); PY_MAKE_PROPERTY(python_tags, get_python_tags); - PY_EXTENSION(int __traverse__(visitproc visit, void *arg)); + //PY_EXTENSION(int __traverse__(visitproc visit, void *arg)); INLINE void list_tags() const; diff --git a/panda/src/pgraph/nodePath_ext.I b/panda/src/pgraph/nodePath_ext.I index 0c919da368..47c1874aa6 100644 --- a/panda/src/pgraph/nodePath_ext.I +++ b/panda/src/pgraph/nodePath_ext.I @@ -135,10 +135,10 @@ has_net_python_tag(PyObject *key) const { /** * Called by Python to implement cycle detection. */ -INLINE int Extension:: +/*INLINE int Extension:: __traverse__(visitproc visit, void *arg) { if (_this->is_empty()) { return 0; } return invoke_extension(_this->node()).__traverse__(visit, arg); -} +}*/ diff --git a/panda/src/pgraph/nodePath_ext.h b/panda/src/pgraph/nodePath_ext.h index e736b4ed1b..b1127f930d 100644 --- a/panda/src/pgraph/nodePath_ext.h +++ b/panda/src/pgraph/nodePath_ext.h @@ -48,7 +48,7 @@ public: NodePath find_net_python_tag(PyObject *key) const; // This is defined to implement cycle detection in Python tags. - INLINE int __traverse__(visitproc visit, void *arg); + //INLINE int __traverse__(visitproc visit, void *arg); void set_shader_input(CPT_InternalName id, PyObject *value, int priority=0); void set_shader_inputs(PyObject *args, PyObject *kwargs);