提交 c97c1ca1 编写于 作者: M Mathieu Bastian

Fix issue with dynamci edge weight on DynamicProcessor.

上级 6c33f3ed
......@@ -2,5 +2,5 @@ Manifest-Version: 1.0
AutoUpdate-Essential-Module: true
OpenIDE-Module: org.gephi.io.processor.plugin
OpenIDE-Module-Localizing-Bundle: org/gephi/io/processor/plugin/Bundle.properties
OpenIDE-Module-Specification-Version: 0.7.1
OpenIDE-Module-Specification-Version: 0.7.1.1
......@@ -133,7 +133,7 @@ public class DynamicProcessor extends AbstractProcessor implements Processor {
attributeModel.getEdgeTable().addColumn(column.getId(), column.getTitle(), column.getType(), column.getOrigin(), column.getDefaultValue());
}
}
} else if (PropertiesColumn.EDGE_WEIGHT.getId().equals(column.getId())) {
} else if (PropertiesColumn.EDGE_WEIGHT.getId().equals(column.getId()) && !existingCol.getType().isDynamicType()) {
attributeModel.getEdgeTable().replaceColumn(attributeModel.getEdgeTable().getColumn(PropertiesColumn.EDGE_WEIGHT.getIndex()), PropertiesColumn.EDGE_WEIGHT.getId(), PropertiesColumn.EDGE_WEIGHT.getTitle(), AttributeType.DYNAMIC_FLOAT, AttributeOrigin.PROPERTY, null);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册