An attempt to fix the issue an undo doesn't work in IPR. The problem: when a user does an undo, Blender will invalidate almost all ID references, including objects that weren't affected by the undo. This is a problem because now we don't know if we're dealing with a new object or one that already exists in the scene graph. To workaround this, if we get a potential "new" object, we do a loop thru our objects dictionary and look for one with a matching db_name. If we do, we update the dictionary to use the new ID reference.
An attempt to fix the issue an undo
doesn't work in IPR.
The problem: when a user does an
undo, Blender will invalidate almost
all ID references, including objects
that weren't affected by the undo.
This is a problem because now
we don't know if we're dealing with
a new object or one that already
exists in the scene graph.
To workaround this, if we get a
potential "new" object, we do a
loop thru our objects dictionary
and look for one with a matching
db_name. If we do, we update
the dictionary to use the new ID
reference.

prman-pixar/RenderManForBlender,prman-pixar/RenderManForBlender,adminradio/RenderManForBlender