Skip to content

Commit a38d3cb

Browse files
editor: Fix #142 (#155)
* Fix save dimension * Update elementproperties.lua * Update dumpxml.lua * Update saveloadtest_server.lua * Update synchronization.lua * Fix pottential error * Fix pottential error Co-authored-by: Patrik Juvonen <[email protected]>
1 parent 2c6416a commit a38d3cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[editor]/editor_main/server/dumpxml.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
local specialSyncers = {
1717
position = function() end,
1818
rotation = function() end,
19-
dimension = function(element) return 0 end,
19+
dimension = function(element) return getElementData(element, "me:dimension") or 0 end,
2020
interior = function(element) return edf.edfGetElementInterior(element) end,
2121
alpha = function(element) return edf.edfGetElementAlpha(element) end,
2222
parent = function(element) return getElementData(element, "me:parent") end,

[editor]/editor_main/server/saveloadtest_server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ addEventHandler ( "saveResource", rootElement, saveResource )
299299
local specialSyncers = {
300300
position = function() end,
301301
rotation = function() end,
302-
dimension = function(element) return 0 end,
302+
dimension = function(element) return getElementData(element, "me:dimension") or 0 end,
303303
interior = function(element) return edf.edfGetElementInterior(element) end,
304304
alpha = function(element) return edf.edfGetElementAlpha(element) end,
305305
parent = function(element) return getElementData(element, "me:parent") end,

0 commit comments

Comments
 (0)