Skip to content

Commit 33cef0a

Browse files
committed
pgraph: Disable non-working __traverse__() on NodePath
1 parent 61665dc commit 33cef0a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

panda/src/pgraph/nodePath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ class EXPCL_PANDA_PGRAPH NodePath {
947947
PY_EXTENSION(NodePath find_net_python_tag(PyObject *keys) const);
948948
PY_MAKE_PROPERTY(python_tags, get_python_tags);
949949

950-
PY_EXTENSION(int __traverse__(visitproc visit, void *arg));
950+
//PY_EXTENSION(int __traverse__(visitproc visit, void *arg));
951951

952952
INLINE void list_tags() const;
953953

panda/src/pgraph/nodePath_ext.I

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ has_net_python_tag(PyObject *key) const {
135135
/**
136136
* Called by Python to implement cycle detection.
137137
*/
138-
INLINE int Extension<NodePath>::
138+
/*INLINE int Extension<NodePath>::
139139
__traverse__(visitproc visit, void *arg) {
140140
if (_this->is_empty()) {
141141
return 0;
142142
}
143143
return invoke_extension(_this->node()).__traverse__(visit, arg);
144-
}
144+
}*/

panda/src/pgraph/nodePath_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Extension<NodePath> : public ExtensionBase<NodePath> {
4848
NodePath find_net_python_tag(PyObject *key) const;
4949

5050
// This is defined to implement cycle detection in Python tags.
51-
INLINE int __traverse__(visitproc visit, void *arg);
51+
//INLINE int __traverse__(visitproc visit, void *arg);
5252

5353
void set_shader_input(CPT_InternalName id, PyObject *value, int priority=0);
5454
void set_shader_inputs(PyObject *args, PyObject *kwargs);

0 commit comments

Comments
 (0)