Deepcopy of a ClockObject?

Hi, I am trying to deepcopy an Object that has a ClockObject object inside of it.
The deepcopy function returns with no errors, but I am running into the following error when I try to invoke the getLongTime method:

AttributeError: C++ object is not yet constructed, or already destructed.

Any tips?

This appears to be a bug in Panda, my apologies. I’ve just committed a fix, but in the meantime, you’ll have to arrange to copy the clockObject outside of the deepcopy operation (for instance, reassign the clock explicitly after you’ve called deepcopy().)


Ok, thanks a lot for the reply. :smiley: