Loading editor/qml/PropertyPanel.qml +16 −1 Original line number Diff line number Diff line Loading @@ -336,8 +336,23 @@ ColumnLayout { onActivated: { var v = typeof((field.options || [])[currentIndex]) === "object" ? field.options[currentIndex].value : field.options[currentIndex] if (eKey === "media_ext" || eKey === "m_media_ext") { var pfx = eKey.startsWith("m_") ? "m_" : "" var curSrc = propPanel.currentProps[pfx + "src"] || "" var dotIdx = curSrc.lastIndexOf(".") if (dotIdx > 0) { var newSrc = curSrc.substring(0, dotIdx + 1) + String(v) var props = {} props[eKey] = String(v) props[pfx + "src"] = newSrc propPanel.saveProperties(props) } else { propPanel.saveProperty(eKey, String(v)) } } else { propPanel.saveProperty(eKey, String(v)) } } } /* checkbox */ Loading Loading
editor/qml/PropertyPanel.qml +16 −1 Original line number Diff line number Diff line Loading @@ -336,8 +336,23 @@ ColumnLayout { onActivated: { var v = typeof((field.options || [])[currentIndex]) === "object" ? field.options[currentIndex].value : field.options[currentIndex] if (eKey === "media_ext" || eKey === "m_media_ext") { var pfx = eKey.startsWith("m_") ? "m_" : "" var curSrc = propPanel.currentProps[pfx + "src"] || "" var dotIdx = curSrc.lastIndexOf(".") if (dotIdx > 0) { var newSrc = curSrc.substring(0, dotIdx + 1) + String(v) var props = {} props[eKey] = String(v) props[pfx + "src"] = newSrc propPanel.saveProperties(props) } else { propPanel.saveProperty(eKey, String(v)) } } else { propPanel.saveProperty(eKey, String(v)) } } } /* checkbox */ Loading