OPAL task construct.definition.update: replace one of the document's own SDF definitions. More...
| Header: | #include <DefinitionUpdateTask> |
| Inherits: | construct::opal::ConstructMutationTask |
The task takes definitionId and the new definition data, GLSL included, and replaces the definition of that id in the active document. It checks the data first, and fails with the state unchanged when the data is not valid or the id is not found.
The change goes through the document's operation executor as a DefinitionUpdate operation on the main thread, so it can be undone. The result names the definition and summarizes its new form.
See also SceneListDefinitionsTask and DefinitionGetTask.