mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -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);
|
||||
out << " }\n"
|
||||
<< " " << cClassName << " *local_this = new " << cClassName << ";\n"
|
||||
<< " DTool_PyInit_Finalize(self, local_this, &Dtool_" << ClassName
|
||||
<< ", false, false);\n"
|
||||
<< " DTool_PyInit_Finalize(self, local_this, "
|
||||
<< "((Dtool_PyInstDef *)self)->_My_Type, false, false);\n"
|
||||
<< " if (local_this == nullptr) {\n"
|
||||
<< " PyErr_NoMemory();\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user