mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
interrogate: Fix __setstate__ not working for subclasses
This commit is contained in:
parent
8852c835fc
commit
1793c9a938
@ -3624,8 +3624,8 @@ write_function_for_name(ostream &out, Object *obj,
|
|||||||
error_return(out, 4, return_flags);
|
error_return(out, 4, return_flags);
|
||||||
out << " }\n"
|
out << " }\n"
|
||||||
<< " " << cClassName << " *local_this = new " << cClassName << ";\n"
|
<< " " << cClassName << " *local_this = new " << cClassName << ";\n"
|
||||||
<< " DTool_PyInit_Finalize(self, local_this, &Dtool_" << ClassName
|
<< " DTool_PyInit_Finalize(self, local_this, "
|
||||||
<< ", false, false);\n"
|
<< "((Dtool_PyInstDef *)self)->_My_Type, false, false);\n"
|
||||||
<< " if (local_this == nullptr) {\n"
|
<< " if (local_this == nullptr) {\n"
|
||||||
<< " PyErr_NoMemory();\n";
|
<< " PyErr_NoMemory();\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user