Closed jpirnay closed 4 days ago
This PR fixes drag and drop functionality across operation nodes, with a focus on image operations. The main changes involve correcting logic in the can_drop
methods and adding proper element type definitions for image operations.
classDiagram
class OpImage {
+bool stopop
+string label
+bool overrule_dpi
+tuple _allowed_elements_dnd
+tuple _allowed_elements
+list allowed_attributes
+bool can_drop(drag_node)
+void drop(drag_node, modify, flag)
}
note for OpImage "Added _allowed_elements_dnd and _allowed_elements attributes"
Change | Details | Files |
---|---|---|
Added allowed elements definitions for image operations |
|
meerk40t/core/node/op_image.py |
Fixed image operation drop validation logic |
|
meerk40t/core/node/op_image.py |
Fixed ancestor check logic across all operation types |
|
meerk40t/core/node/op_image.py meerk40t/core/node/op_cut.py meerk40t/core/node/op_engrave.py meerk40t/core/node/op_dots.py meerk40t/core/node/op_raster.py |
Summary by Sourcery
Fix crash in the drag and drop functionality for image operations by correcting logic issues in the 'can_drop' method and refactor similar logic across multiple operation nodes for consistency.
Bug Fixes:
Enhancements: