mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Optimized memory usage when having many Hookup Wire components
This commit is contained in:
@@ -4194,6 +4194,10 @@
|
|||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Potentiometer bodies are no longer considered as conductive surfaces to avoid unwanted shorts</description>
|
<description>Potentiometer bodies are no longer considered as conductive surfaces to avoid unwanted shorts</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Optimized memory usage when having many Hookup Wire components</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Improved conductivity tracking of Terminal Strip</description>
|
<description>Improved conductivity tracking of Terminal Strip</description>
|
||||||
|
|||||||
Binary file not shown.
@@ -40,7 +40,7 @@ import org.diylc.utils.Constants;
|
|||||||
@ComponentDescriptor(name = "Hookup Wire", author = "Branislav Stojkovic", category = "Connectivity",
|
@ComponentDescriptor(name = "Hookup Wire", author = "Branislav Stojkovic", category = "Connectivity",
|
||||||
instanceNamePrefix = "W", description = "Flexible wire with two control points", zOrder = IDIYComponent.WIRING,
|
instanceNamePrefix = "W", description = "Flexible wire with two control points", zOrder = IDIYComponent.WIRING,
|
||||||
flexibleZOrder = true, bomPolicy = BomPolicy.NEVER_SHOW, autoEdit = false,
|
flexibleZOrder = true, bomPolicy = BomPolicy.NEVER_SHOW, autoEdit = false,
|
||||||
transformer = SimpleComponentTransformer.class, enableCache = true)
|
transformer = SimpleComponentTransformer.class, enableCache = false)
|
||||||
public class HookupWire extends AbstractCurvedComponent<Void> implements IContinuity {
|
public class HookupWire extends AbstractCurvedComponent<Void> implements IContinuity {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@@ -156,5 +156,5 @@ public class HookupWire extends AbstractCurvedComponent<Void> implements IContin
|
|||||||
@Override
|
@Override
|
||||||
public boolean arePointsConnected(int index1, int index2) {
|
public boolean arePointsConnected(int index1, int index2) {
|
||||||
return Math.abs(index1 - index2) == getControlPointCount() - 1;
|
return Math.abs(index1 - index2) == getControlPointCount() - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user