Skip to content

Commit

Permalink
lod setObjectScale
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Nov 20, 2024
1 parent b6ce4b9 commit 73d2a05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions [editor]/editor_main/server/dumpxml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,12 @@ local function onResourceStartOrStop(startedResource)
if lodModel then
local objectX, objectY, objectZ = getElementPosition(objectElement)
local objectRX, objectRY, objectRZ = getElementRotation(objectElement)
local objectScaleX, objectScaleY, objectScaleZ = getObjectScale(objectElement)
local objectInterior = getElementInterior(objectElement)
local objectDimension = getElementDimension(objectElement)
local lodObject = createObject(lodModel, objectX, objectY, objectZ, objectRX, objectRY, objectRZ, true)
if lodObject then
setObjectScale(lodObject, objectScaleX, objectScaleY, objectScaleZ)
setElementInterior(lodObject, objectInterior)
setElementDimension(lodObject, objectDimension)
setElementParent(lodObject, objectElement)
Expand Down

0 comments on commit 73d2a05

Please sign in to comment.