Skip to content

Commit c061114

Browse files
committed
fix a bug
1 parent a1eca38 commit c061114

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Property explorer.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ function updateTableRow(i, updateSingle)
265265
else
266266
-- normal row
267267
local ptype, pflags, descr = sim.getPropertyInfo(target, pname)
268-
propertiesValues[pname] = sim.getProperty(target, pname)
269268
propertiesInfos[pname] = {
270269
type = ptype,
271270
flags = {
@@ -279,6 +278,11 @@ function updateTableRow(i, updateSingle)
279278
descr = descr,
280279
}
281280
local flags = propertiesInfos[pname].flags
281+
if flags.readable then
282+
if not flags.large then
283+
propertiesValues[pname] = sim.getProperty(target, pname)
284+
end
285+
end
282286
tableRows.pname[i] = pname
283287
tableRows.ptype[i] = string.gsub(sim.getPropertyTypeString(propertiesInfos[pname].type), 'array$', '[]')
284288
tableRows.pvalue[i] = sim.convertPropertyValue(propertiesValues[pname], propertiesInfos[pname].type, sim.propertytype_string)

0 commit comments

Comments
 (0)