mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-23 17:02:39 +00:00
Design: Text and SVG join Create — they were excluded on a premise that is not true
Mirror of snaporca 6724ea27c5 (DesignPanel.cpp applied as a patch; parity 30, shared files byte-identical). chrome_only's rule is "acts on the DOCUMENT, not on a selection". Text and SVG both call add_imported_sketch(), which drops the art on a picked solid face via SketchPlane::from_face() — a selection-consuming profile creator, like Sketch. Now sk_text / sk_svg in the sketch half's Create row, where their toolbar buttons already sit. Verified on the rig: Create ends Point, Text, SVG. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LyRwbuq6fjn3VV9U9UvhBM
This commit is contained in:
co-authored by
Claude Opus 5
parent
d5c5d5675e
commit
447c71a0d2
+41
-3
@@ -1537,6 +1537,46 @@
|
||||
"gui": true,
|
||||
"action": "key:P"
|
||||
},
|
||||
{
|
||||
"id": "sk_text",
|
||||
"name": "Text",
|
||||
"slot": "create",
|
||||
"key": null,
|
||||
"feature": "Sketch",
|
||||
"mcp": null,
|
||||
"accepts": [
|
||||
"sk_none",
|
||||
"sk_point",
|
||||
"sk_line",
|
||||
"sk_arc",
|
||||
"sk_2ent"
|
||||
],
|
||||
"needs": {},
|
||||
"refusal": null,
|
||||
"gui": true,
|
||||
"action": "btn:text",
|
||||
"mode": "sketch"
|
||||
},
|
||||
{
|
||||
"id": "sk_svg",
|
||||
"name": "SVG",
|
||||
"slot": "create",
|
||||
"key": null,
|
||||
"feature": "Sketch",
|
||||
"mcp": null,
|
||||
"accepts": [
|
||||
"sk_none",
|
||||
"sk_point",
|
||||
"sk_line",
|
||||
"sk_arc",
|
||||
"sk_2ent"
|
||||
],
|
||||
"needs": {},
|
||||
"refusal": null,
|
||||
"gui": true,
|
||||
"action": "btn:svg",
|
||||
"mode": "sketch"
|
||||
},
|
||||
{
|
||||
"id": "sk_offset",
|
||||
"name": "Offset",
|
||||
@@ -1820,12 +1860,10 @@
|
||||
}
|
||||
],
|
||||
"chrome_only": {
|
||||
"_why": "document-level actions act on the DOCUMENT, not on a selection, so they stay in chrome and never enter the offer (see 4.1)",
|
||||
"_why": "document-level actions act on the DOCUMENT, not on a selection, so they stay in chrome and never enter the offer (see 4.1) Text and SVG were removed from this list 2026-08-01: they create a Sketch feature on the picked face, so they consume a selection like any other Create verb.",
|
||||
"items": [
|
||||
"Import STEP",
|
||||
"Import mesh",
|
||||
"Text",
|
||||
"SVG",
|
||||
"Export STEP",
|
||||
"Commit to Plate",
|
||||
"Undo",
|
||||
|
||||
Reference in New Issue
Block a user