Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions [editor]/editor_gui/client/elementproperties.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,7 @@ local commonApplier = {
return edf.edfSetElementRotation(selectedElement, unpack(control:getValue()))
end,
dimension = function(control)
local dimension = control:getValue()
if dimension then
return setElementData(selectedElement, "me:dimension", dimension)
else
return false
end
return edf.edfSetElementDimension(selectedElement, control:getValue())
end,
interior = function(control)
return edf.edfSetElementInterior(selectedElement, control:getValue())
Expand Down
2 changes: 1 addition & 1 deletion [editor]/editor_main/server/dumpxml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end
local specialSyncers = {
position = function() end,
rotation = function() end,
dimension = function(element) return 0 end,
dimension = function(element) return edf.edfGetElementDimension(element) end,
interior = function(element) return edf.edfGetElementInterior(element) end,
alpha = function(element) return edf.edfGetElementAlpha(element) end,
parent = function(element) return getElementData(element, "me:parent") end,
Expand Down
2 changes: 1 addition & 1 deletion [editor]/editor_main/server/saveloadtest_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ addEventHandler ( "saveResource", rootElement, saveResource )
local specialSyncers = {
position = function() end,
rotation = function() end,
dimension = function(element) return 0 end,
dimension = function(element) return edf.edfGetElementDimension(element) end,
interior = function(element) return edf.edfGetElementInterior(element) end,
alpha = function(element) return edf.edfGetElementAlpha(element) end,
parent = function(element) return getElementData(element, "me:parent") end,
Expand Down
2 changes: 1 addition & 1 deletion [editor]/editor_main/server/synchronization.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local function syncElementRotation(element, value)
end

local function syncElementDimension(element, dim)
setElementData(element, "me:dimension", dim)
edf.edfSetElementDimension(element, dim)
end

local function syncElementInterior(element, int)
Expand Down