LinearArray: fix fail to be created on an edge

This commit is contained in:
DeepSOIC 2015-12-27 01:13:38 +03:00
parent 254e2e6dfb
commit 4cf19bcecd

View File

@ -71,6 +71,7 @@ class LinearArray(lattice2BaseFeature.LatticeFeature):
self.assureGenerator(obj)
obj.ValuesSource = "Generator"
obj.GeneratorMode = "StepN"
obj.EndInclusive = True
obj.SpanStart = 0.0
obj.SpanEnd = 12.0
@ -135,8 +136,8 @@ class LinearArray(lattice2BaseFeature.LatticeFeature):
else:
propname = obj.DrivenProperty
setattr(obj, propname, dir.Length)
if obj.generator.isPropertyControlledByGenerator(propname):
lattice2executer.warning(obj, "Property "+propname+" is driven by both generator and link. Generator has priority.")
if self.generator.isPropertyControlledByGenerator(propname):
lattice2Executer.warning(obj, "Property "+propname+" is driven by both generator and link. Generator has priority.")
# Generate series of values