Nebula
Loading...
Searching...
No Matches
ModelDocument Class Reference

#include <modeldocument.h>

Detailed Description

A model open in the asset editor, shown in the asset preview: the material of each node, the meshes, and for a skinned model its skeleton, joint masks and animation.

The animation is played on the preview's character: clips with a transport, a second clip layered over the first on the joints of a mask, and the clip sections and events the asset adds when it is packaged, shown and dragged on the time slider.

What the document edits is small next to the asset, which holds the meshes: the node materials, the clip sections, the clip events and the joint masks. Every edit that is done becomes a command holding those parts as they were and as they are, so undo puts them back whole. A material change shows on the model in the scene as well, the way the old editor showed it.

Saving writes the whole asset, the meshes as they were read, and batches it, which packages the sections, events and masks into the model's animation and skeleton.

See also
Editor::AssetDocument

The documentation for this class was generated from the following file:
  • /github/workspace/code/addons/graphicsfeature/editor/assets/modeldocument.h