ws-3d3: model/3ds/Write: drop an unused local
This commit is contained in:
1 parent
730820d1f6
commit
f3df37012e
1 file changed
-2
@@ -670,7 +670,6 @@ function Write.encode(scene: Types.Scene, opts: Options?): (buffer?, string?)
|
|||||||
local pk = if p ~= 0 then kfOf[p] else nil
|
local pk = if p ~= 0 then kfOf[p] else nil
|
||||||
local camOrLight = (n.camera and scene.cameras[n.camera]) or (n.light and scene.lights[n.light])
|
local camOrLight = (n.camera and scene.cameras[n.camera]) or (n.light and scene.lights[n.light])
|
||||||
local dist = 100
|
local dist = 100
|
||||||
local x3ds = n.extras and n.extras["3ds"]
|
|
||||||
local function placeCamLight(kind: number, objName: string, tgtChunk: number?)
|
local function placeCamLight(kind: number, objName: string, tgtChunk: number?)
|
||||||
local pos, tgt, roll = aim(W[i], dist)
|
local pos, tgt, roll = aim(W[i], dist)
|
||||||
local kn: KfNode = { chunk = kind, name = objName, parent = -1, frames = { pos = { 0 }, roll = { 0 } }, values = { pos = pos, roll = { roll } } }
|
local kn: KfNode = { chunk = kind, name = objName, parent = -1, frames = { pos = { 0 }, roll = { 0 } }, values = { pos = pos, roll = { roll } } }
|
||||||
@@ -751,7 +750,6 @@ function Write.encode(scene: Types.Scene, opts: Options?): (buffer?, string?)
|
|||||||
end
|
end
|
||||||
return idx
|
return idx
|
||||||
end
|
end
|
||||||
local _ = x3ds
|
|
||||||
if n.mesh == nil and camOrLight then
|
if n.mesh == nil and camOrLight then
|
||||||
camLight(true)
|
camLight(true)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in new issue
Block a user