Files
test2/tests/files/io_tests
Jacques Lucke f0c7e52ff2 Core: extract blendfile_header.py as common utility for parsing .blend files
This new file can parse the file header (first few bytes) as well as the block
headers.

Right now, this is used by two places:
* `blendfile.py` which is used by `blend2json.py`
* `blend_render_info.py`

This new module is shipped with Blender because it's needed for
`blend_render_info.py` which is shipped with Blender too. This makes using it in
`blendfile.py` (which is not shipped with Blender) a bit more annoying. However,
this is already not ideal, because e.g. `blend2json` also has to add to
`sys.path` already to be able to import `blendfile.py`.

This new file could also be used by blender-asset-tracer (BAT).

The new `BlendFileHeader` and `BlockHeader` types may be subclassed by code
using it, because it wants to store additional derived data (`blendfile.py` and
BAT need this).

New tests have been added that check that the file and block header is parsed
correctly for different kinds of .blend files.

Pull Request: https://projects.blender.org/blender/blender/pulls/140341
2025-06-23 12:53:55 +02:00
..

This is a list of files (and needed files) for conformance testing of exporters
and importers The left hand column is the type of test and/or the folder the test is 
located in. The right hand column is the name of the blend file the test is in.  
If no blend file is listed then the test has not been created yet.
If you wish to contribute, please create a blend that is as simple as 
possible that can still test the functionality.  
Try to limit a blend to testing one thing unless it is a a 'complex test'.

SIMPLE TESTS

	MESH_GEOMETRY
		All Tris				all_tris.blend
		Mixed Quads and Tri			mixed_quads_and_tris.blend
		All Quads				all_quads.blend
		FGons					fgons.blend
		Vertices				vertics.blend
		Edges					edges.blend

	CURVE_GEOMETRY
		Nurbs
		Splines
		Circles
		Various tangent types
		2D/3D

	TExT

	METABALL_GEOMETRY

	MODIFIERS

	TRANSFORMS
		Location
		Rotation
		Scale

	HIERARCY
		Parent_Child
		Parent_Multiple Child
	
	ARMATURES

	SKINNGING

	CONSTRAINTS

	TEXTURE
		UV Map
		Double Sided

	MATERIALS

	LIGHTS
		Spot
		
	CAMERAS

	ANIMATION
		Fcurves
		NLA

	PARTICLES

	HAIR

	PHYSICS

	FLUIDS

	SMOKE

	CLOTH

	SOFTBODY

COMPLEX_TESTS