12.1: feathered selections, Select Subject, Soft Light, the fixed-width font menu (Compositor 1.1.1–1.1.4)

This commit is contained in:
雷电芽衣 committed 2026-09-26 17:15:26 -04:00
1 parent 3e52fd90ee
commit ee34c338d4
42 files changed
+1087 -94

No files matched your search

+9 -1
View File
@@ -37,7 +37,15 @@ void InlineTextEditor::synchronize(const TextDraft &draft)
}
const LayerTextStyle &style = draft.style;
// Point text has no box: it is what is typed.
m_logicalSize = EditorSession::textBoxSize(style);
if (style.boxSize) {
m_logicalSize = *style.boxSize;
} else {
if (m_measuredStyle != style) {
m_measuredSize = EditorSession::textBoxSize(style);
m_measuredStyle = style;
}
m_logicalSize = m_measuredSize;
}
LayerTransform transform = draft.transform.value_or(LayerTransform{.origin = draft.origin, .size = m_logicalSize});
// Point text grows at its layer's scale, corner kept.
const int index = draft.layerID ? indexOf(document.layers, *draft.layerID) : -1;