Merge pull request #1726 from SiboVG/issue-1723
[#1723] Import MassObject length with NoAuto
This commit is contained in:
commit
e8f6074b86
@ -374,7 +374,7 @@ class DocumentConfig {
|
|||||||
|
|
||||||
// MassObject
|
// MassObject
|
||||||
setters.put("MassObject:packedlength", new DoubleSetter(
|
setters.put("MassObject:packedlength", new DoubleSetter(
|
||||||
Reflection.findMethod(MassObject.class, "setLength", double.class)));
|
Reflection.findMethod(MassObject.class, "setLengthNoAuto", double.class)));
|
||||||
setters.put("MassObject:packedradius", new DoubleSetter(
|
setters.put("MassObject:packedradius", new DoubleSetter(
|
||||||
Reflection.findMethod(MassObject.class, "setRadius", double.class),
|
Reflection.findMethod(MassObject.class, "setRadius", double.class),
|
||||||
"auto", " ",
|
"auto", " ",
|
||||||
|
@ -248,8 +248,8 @@ public abstract class MassObject extends InternalComponent {
|
|||||||
@Override
|
@Override
|
||||||
public final Collection<Coordinate> getComponentBounds() {
|
public final Collection<Coordinate> getComponentBounds() {
|
||||||
Collection<Coordinate> c = new ArrayList<Coordinate>();
|
Collection<Coordinate> c = new ArrayList<Coordinate>();
|
||||||
addBound(c, 0, radius);
|
addBound(c, 0, getRadius());
|
||||||
addBound(c, length, radius);
|
addBound(c, getLength(), getRadius());
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user