Meshroom/meshroom/core
Yann Lanthony 90acb93ea8 [core] Trigger node desc creation callback only for explicit node creation
The desc.Node.onCreated callback is a hook in the Node API for developers to
write custom behavior on a node first initialization.
By being called in the core.Node constructor, this was triggered in several situations
that don't match this idea and with unpredictable side effects (graph loading, node re-creation on undo...).

* Make `onNodeCreated` callback an explicit method on desc.Node.
* Remove the call to node descriptor's `onNodeCreated` callback outside core.Node constructor.
* Trigger this callback on explicit node creation (adding new node to graph, init a graph from a template).
2025-02-14 11:42:22 +01:00
..
desc [core] Trigger node desc creation callback only for explicit node creation 2025-02-14 11:42:22 +01:00
__init__.py [core] Check folder is valid before loading templates from it 2024-09-27 11:23:44 +02:00
attribute.py [core] Handle missing link nodes when deserializing edges 2025-02-06 16:46:05 +01:00
cgroup.py Linting: Clean-up files 2024-09-12 10:50:13 +02:00
exception.py [core] Add 'strictCompatibility' mode for loadGraph function 2024-11-14 19:11:08 +01:00
graph.py [core] Trigger node desc creation callback only for explicit node creation 2025-02-14 11:42:22 +01:00
graphIO.py [core][graphIO] PartialSerializer: fix List/GroupAttribute link serialization 2025-02-06 18:19:19 +01:00
node.py [core] Trigger node desc creation callback only for explicit node creation 2025-02-14 11:42:22 +01:00
nodeFactory.py [core][graphIO] Improve node type version handling 2025-02-06 16:46:05 +01:00
stats.py Linting: Clean-up files 2024-09-12 10:50:13 +02:00
submitter.py [submitters] Add an option to update the job title on submitters 2022-12-05 15:23:10 +01:00
taskManager.py [ui] Recompute and Re-submit not allowed with Compatibility Nodes 2024-09-13 18:32:46 +02:00
typing.py [core] Graph: initial refactoring of graph loading API and logic 2025-02-06 16:46:04 +01:00
utils.py [core] utils.py: Add new utilitary constants for ChoiceParams 2024-02-08 17:47:30 +01:00