add-object-automatic-container.rst 927 B

1234567891011121314151617181920
  1. .. include:: ../_header.rst
  2. Automatic parenting of new objects
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. When a new object is created (by `dropping a block <blocks-view-integration.html>`_, or by pasting the object) a set of rules are evaluated to determine the parent of the new object:
  5. * If there is an object selected in the scene:
  6. * If it is a container, then the new object will be added to it.
  7. * Else, if it has a parent container, then the new object will be added to the parent.
  8. * If the scene is a prefab scene:
  9. * If the scene is empty, the new object is added to the scene.
  10. * If the `root object <prefab-object.html>`_ is a container, then the new object will be added to it.
  11. * Else, a new container is created and the old `root object`_ and the newly added object will be added to the new container. So the scene will have a new `root object`_: the automatically created container.