blender/doc/python_api
Sergey Sharybin 32d5d127cb Tweak API to support adding evaluated meshes to main database
One of the usecases is to create mesh from an object is a manner similar to
how Apply Modifiers does it, and have it in the bmain so it can be referenced
by other objects.

This usecase is something what went unnoticed in the previous API changes, so
here is a followup.

Summary of changes:

* bpy.meshes.new_from_object() behaves almost the same as before this change.
  The difference now is that it now ensures all referenced data-blocks are
	original (for example, materials referenced by the mesh).

* object.to_mesh() now creates free-standing Mesh data-block which is outside
  of any bmain. The object owns it, which guarantees the memory never leaks.

  It is possible to force free memory by calling object.to_mesh_clear().

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4875
2019-05-16 16:42:16 +02:00
..
examples Tweak API to support adding evaluated meshes to main database 2019-05-16 16:42:16 +02:00
rst Fix T60891: bgl docs still include deprecated opengl functions 2019-04-04 16:14:59 +02:00
static PyAPI: Add HTML logo and favicon 2017-06-15 22:01:04 -04:00
requirements.txt Pydoc: Switch theme to sphinx_rtd_theme 2018-08-13 20:51:36 -04:00
rst_from_bmesh_opdefines.py Merge branch 'master' into blender2.8 2018-09-03 17:44:36 +02:00
sphinx_changelog_gen.py Spelling fixes in comments and descriptions, patch by luzpaz. 2018-09-03 16:55:01 +02:00
sphinx_doc_gen.py UV Sculpt: improve tool-system integration 2019-05-01 20:32:38 +10:00
sphinx_doc_gen.sh Cleanup: use 2 space indentation for shell scripts 2019-04-17 06:08:01 +02:00
sphinx_doc_gen_monkeypatch.py Cleanup: remove contributors for Python files 2019-02-05 09:17:00 +11:00
sphinx_doc_update.py Cleanup: remove contributors for Python files 2019-02-05 09:17:00 +11:00