API doc: info_gotcha: extend description of issues related to memory changes.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 18 Feb 2019 13:31:42 +0000 (14:31 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 18 Feb 2019 13:36:16 +0000 (14:36 +0100)
commit49c100e56c5a093c514bf5d6851b45f22a36f85f
tree307887d42e6347805dd685e49fb4bd8ed32e0105
parent9299073d57e97185877dd48922a1a98381eefd8e
API doc: info_gotcha: extend description of issues related to memory changes.

* Added a TL;DR first paragraph summarizing that one shall not keep any
reference to Blender data when modifying its container.

* Added some info about fact that adding items to some data containers
(like Collection) can also invalidate existing items (due to array
re-allocation).

* Added a Do/Don't example which shows a crash after adding some items
to a collection.

Related to T61297.
doc/python_api/rst/info_gotcha.rst