Skip to content

Commit

Permalink
Restore curves serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Jan 30, 2024
1 parent 7b24705 commit 86d7029
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions layer3/Executive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5066,6 +5066,11 @@ static int ExecutiveSetNamedEntries(PyMOLGlobals * G, PyObject * names, int vers
skip = !ObjectCallbackNewFromPyList(G, el, (ObjectCallback **) (void *) &rec->obj);
break;
#endif
case cObjectCurve:
{
rec->obj = new ObjectCurve(G, el);
}
break;
default:
PRINTFB(G, FB_Executive, FB_Errors)
" Executive: skipping unrecognized object \"%s\" of type %d.\n",
Expand Down Expand Up @@ -5255,6 +5260,9 @@ static PyObject *ExecutiveGetExecObjectAsPyList(PyMOLGlobals * G, SpecRec * rec)
case cObjectCallback:
PyList_SetItem(result, 5, ObjectCallbackAsPyList((ObjectCallback *) rec->obj));
break;
case cObjectCurve:
PyList_SetItem(result, 5, static_cast<ObjectCurve*>(rec->obj)->asPyList());
break;
default:
PyList_SetItem(result, 5, PConvAutoNone(NULL));
break;
Expand Down

0 comments on commit 86d7029

Please sign in to comment.