ViewportModeLibrary

The list of viewport modes: the built-ins of the bundle and the person's own, in the order that Z cycles them (viewport-shading-modes §VSMA-2).

Inherits QObject

In the namespace construct::model. Declared in src/libs/libconstruct/construct/model/ViewportModeLibrary.hpp.

Detailed description

A built-in is a record at :/construct/viewport-modes/<id>.yaml. The person's records live in <dataDir>/shading-modes.json, beside materials.json, so standalone Construct and the hub's Construct have the same list. A record with the id of a built-in shadows it, and resetToBuiltIn() brings the built-in back. A built-in cannot be deleted, so the list always holds the three built-ins.

The file's key order is the list order of every mode. An id that the order does not name goes to the end.

In this section