[clean] fix variable names and typos

* node_factory & attribute_factory to camelCase
* fix depths variable in updateNodesTopologicalData
This commit is contained in:
Yann Lanthony 2018-07-26 12:02:47 +02:00
parent 3615f641fd
commit 93dd055f72
6 changed files with 22 additions and 22 deletions

View file

@ -7,7 +7,7 @@ from PySide2.QtCore import Property, Signal
from meshroom.core.attribute import ListAttribute, Attribute
from meshroom.core.graph import GraphModification
from meshroom.core.node import node_factory
from meshroom.core.node import nodeFactory
class UndoCommand(QUndoCommand):
@ -126,7 +126,7 @@ class RemoveNodeCommand(GraphCommand):
def undoImpl(self):
with GraphModification(self.graph):
node = node_factory(self.nodeDict, self.nodeName)
node = nodeFactory(self.nodeDict, self.nodeName)
self.graph.addNode(node, self.nodeName)
assert (node.getName() == self.nodeName)
# recreate out edges deleted on node removal
@ -280,7 +280,7 @@ class UpgradeNodeCommand(GraphCommand):
self.graph.removeNode(self.nodeName)
# recreate compatibility node
with GraphModification(self.graph):
node = node_factory(self.nodeDict)
node = nodeFactory(self.nodeDict)
self.graph.addNode(node, self.nodeName)
# recreate out edges
for dstAttr, srcAttr in self.outEdges.items():