[Bf-python] scene linking

models at paposo.com models at paposo.com
Mon Nov 10 03:47:39 CET 2003


I was wondering... When we create a datablock and then link it to an object, the object does not get added to the scene until we also link the object to the scene. If you look there is a usercount of 2 for objects created this way.  The first count comes when we create the object - alloclibblock() sets the usercount of the new Object to 1. Then when you link to scene the usercount goes to 2. Mesh primatives are add to the scene but they only have a user count of 1. Does linking to a scene need to increment the user count to 2?  Just wondering.<?>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20031109/f5173411/attachment.html>


More information about the Bf-python mailing list