Hot Door CORE Forum
Art->duplicate() doesn't work for custom art type - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5)
+--- Thread: Art->duplicate() doesn't work for custom art type (/showthread.php?tid=261)



Art->duplicate() doesn't work for custom art type - Rick Johnson - 12-28-2020

When duplicating an Art object of type ArtTypeCustom, the original and copy become commingled. Looking over the SDK, it appears that art of type Custom correlates to the SDK's PluginGroup, which says that the edit art and result art are not children of the parent object. Rather, it's a special type that returns pointers to the edit and result groups stored elsewhere.

The only workaround I've found it is to create a new custom art and copy the contents of the editable art as well as the contents of the dictionary.