Skip to content

Commit 4b477e8

Browse files
authored
Merge pull request Quenty#564 from Quenty/users/unrooot/blend-converter-fixes
fix: Remove extra text from string
2 parents 2d28446 + aa41697 commit 4b477e8

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

plugins/ui-converter-plugin/src/modules/Server/UIConverterUtils.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,9 @@ function UIConverterUtils.toLuaPropertyString(value: any, debugHint: string): st
236236
if value.Weight == Enum.FontWeight.Regular and value.Style == Enum.FontStyle.Normal then
237237
return string.format("Font.new(%q)", value.Family)
238238
else
239-
return string.format(
240-
"Font.new(%q, Enum.FontWeight.%s, Enum.FontStyle.%s)",
241-
value.Family,
242-
tostring(value.Weight),
243-
tostring(value.Style)
244-
)
239+
return string.format("Font.new(%q, %s, %s)", value.Family, tostring(value.Weight), tostring(value.Style))
245240
end
246241
elseif valueType == "Content" then
247-
-- TODO: Do we need to handle Enum.ContentSourceType.Object?
248242
if value.SourceType == Enum.ContentSourceType.Uri then
249243
return `Content.fromUri("{value.Uri or ""}")`
250244
else

0 commit comments

Comments
 (0)