mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
don't stick to locked components
This commit is contained in:
+2
-2
@@ -605,8 +605,8 @@ public class Presenter implements IPlugInPort {
|
|||||||
for (IDIYComponent<?> component : currentProject.getComponents()) {
|
for (IDIYComponent<?> component : currentProject.getComponents()) {
|
||||||
ComponentType componentType = componentTypeMap.get(component.getClass().getName());
|
ComponentType componentType = componentTypeMap.get(component.getClass().getName());
|
||||||
|
|
||||||
// Do not process a component if it's already in the map.
|
// Do not process a component if it's already in the map and if it's locked.
|
||||||
if (!controlPointMap.containsKey(component)) {
|
if (!controlPointMap.containsKey(component) && !isComponentLocked(component)) {
|
||||||
// Check if there's a control point in the current selection
|
// Check if there's a control point in the current selection
|
||||||
// that matches with one of its control points.
|
// that matches with one of its control points.
|
||||||
for (int i = 0; i < component.getControlPointCount(); i++) {
|
for (int i = 0; i < component.getControlPointCount(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user