mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-18 03:27:32 +08:00
New LinearColorEntity, string serialization fixed
This commit is contained in:
@@ -10,11 +10,15 @@ export default class PinSerializer extends GeneralSerializer {
|
||||
super(v => `${PinEntity.lookbehind} (${v})`, PinEntity, "", ",", true)
|
||||
}
|
||||
|
||||
writeValue(value, fullKey) {
|
||||
if (value?.constructor === String && fullKey == "DefaultValue") {
|
||||
/**
|
||||
* @param {String[]} fullKey
|
||||
* @param {Boolean} insideString
|
||||
*/
|
||||
writeValue(value, fullKey, insideString) {
|
||||
if (value?.constructor === String && fullKey.length == 1 && fullKey[0] == "DefaultValue") {
|
||||
// @ts-expect-error
|
||||
return `"${Utility.encodeInputString(value)}"`
|
||||
}
|
||||
return super.writeValue(value, fullKey)
|
||||
return super.writeValue(value, fullKey, insideString)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user