Commit graph

33 commits

Author SHA1 Message Date
Candice Bentéjac
f2a904ac9b Fix compatibility with Python 3
- Import "collections" correctly depending on the version of
Python
- Fix regex that raised deprecation warnings in Python 3
2022-07-19 14:52:18 +02:00
Fabien Castan
af4dae9a77 Merge branch 'dev/ImageGalleryFilter' of https://github.com/N0Ls/meshroom into N0Ls-dev/ImageGalleryFilter 2021-09-01 11:03:55 +02:00
Landrodie
79955ddae6 [core] Change attribute name and label properties
Adding new properties and updating the call to previous ones.
Properties are now :
* label : getLabel
* fullLabel : getFullLabel
* fullLabelToNode : getFullLabelToNode
* fullLabelToGraph : getFullLabelToGraph

Same for the name.
2021-08-23 17:52:40 +02:00
Fabien Castan
1704e8935d [core] fix upgrade for linked ListAttribute 2021-08-19 10:09:43 +02:00
Fabien Castan
5ab6ed8e52 [core] Improve project files upgrade
- upgrade groups with changes in params
- new upgradeAttributeValues per node
2021-08-13 16:07:14 +02:00
Fabien Castan
078120696a [ui] GraphEditor: fix some readOnly regarding CompatibilityNodes 2021-01-22 14:30:33 +01:00
Fabien Castan
5fb6a5fb0f [ui] GraphEditor: only connect compatible attributes 2020-12-28 16:18:51 +01:00
Fabien Castan
ecf10a65f7 [ui] GraphEditor: visualize edges between params (non File attributes) 2020-12-18 01:13:54 +01:00
Julien-Haudegond
635f36216b [core] Attribute.isLink: fix unreachable return 2020-09-05 13:05:20 +02:00
Julien-Haudegond
74fa3022fe [core] Graph: avoid double update while adding/removing an edge
Graph.markNodesDirty() is called in three different places:
- Attribute.requestGraphUpdate()
- Graph.addEdge()
- Graph.removeEdge()

However, addEdge() and removeEdge() are especially decorated to request a graph update so, with the old markNodesDirty() implementation, the update was done twice in a row.
2020-08-27 17:16:40 +02:00
Julien-Haudegond
79e1c69d5d Merge remote-tracking branch 'origin/develop' into dev/nodesAndTaskManager 2020-08-24 15:19:31 +02:00
Julien-Haudegond
688027a69f [ui] MediaLibrary: fix dependency binding 2020-08-21 17:25:18 +02:00
Julien-Haudegond
0c9dc81a82 [core] fix validateValue and setValue for Attributes 2020-08-13 14:24:44 +02:00
Julien-Haudegond
cd89a49156 [core] GroupAttribute: add new ways of setting value
- Add: set value with JS Object
- Add: set value from a JSON String
2020-08-13 14:24:44 +02:00
Fabien Castan
588c2e59b8
[core] GroupAttribute: check "enabled" property of child params in uid computation
Disabled params should not be part of the UID computation, even for child attributes of an enabled GroupAttribute.
2020-08-11 11:50:59 +02:00
Fabien Castan
bab908d2eb Merge branch 'develop' into dev/nodesAndTaskManager 2020-07-30 10:56:19 +02:00
Julien-Haudegond
9e6c137ea2 [core] fix enabled issue when version mismatch 2020-07-29 17:02:16 +02:00
Julien-Haudegond
524a4ab629 [core] fix enabled parameter inside group and list 2020-07-29 11:32:52 +02:00
Julien-Haudegond
2d953d7319 [core] add enabled property on attributes
The new property "enabled" allows to define a lambda to dynamically enable/disable parameters.
Disabled parameters are not used in the uid, not exported to the command line and not visible in the interface.
2020-07-24 17:36:17 +02:00
Fabien Castan
c02267b4ce [core] avoid error during project load 2020-07-18 14:43:55 +02:00
Karthikeyan Singaravelan
165ba412e4
Import ABC from collections.abc (#983)
Use compatibility layer for Python 2 support
2020-07-16 16:02:51 +02:00
Fabien Castan
2401a366e2 [core] expose a recursive option in getLinkParam 2020-07-02 18:15:03 +02:00
Fabien Castan
7d99ba4b59 [core] copy attribute desc default value
to ensure that it is not editable if the value is a list
2020-07-01 01:54:16 +02:00
Fabien Castan
bbc56cfb31 [core] Add support for lambda function in Attribute desc value
Allows to dynamically configure the default value of the Attribute in python.
2020-06-28 17:39:50 +02:00
Fabien Castan
76fd327fde [ui] qml warning fix by using directly the edge object instead of the property 2020-03-10 12:57:38 +01:00
Yann Lanthony
fcb2b23c1a [core] add "Attribute.hasOutputConnections" property
Give access to whether an attribute has output connections.
2020-01-24 11:18:08 +01:00
Fabien Castan
f1267d7e67
[core] Attribute: avoid accessing member function of an invalid object 2019-11-29 11:34:15 +01:00
Clara
9f928e1ea0 [mesh] Texturing: set parameters for multi-band blending
Use only 3 parameters : useScore, multiBandDownscale, multiBandNbContrib
2019-05-13 17:04:26 +02:00
Yann Lanthony
1a22fc8ae8 [core] add GroupAttribute.childAttribute method
* easier access to child attributes
* callable from QML
2019-03-01 17:22:57 +01:00
Yann Lanthony
3dad1e3aac [core] Attribute: expose 'node' and 'linkParam' as properties 2018-11-19 15:17:36 +01:00
Yann Lanthony
400835d8f8 [core] Attribute: expose 'fullName' as property 2018-11-19 15:17:36 +01:00
Yann Lanthony
93dd055f72 [clean] fix variable names and typos
* node_factory & attribute_factory to camelCase
* fix depths variable in updateNodesTopologicalData
2018-07-26 12:11:43 +02:00
Yann Lanthony
1f675a0e42 [core] split graph.py into separate modules
core.graph is now splitted into: 
  * graph.py
  * node.py
  * attribute.py
2018-06-26 12:19:14 +02:00