Merge pull request #1022 from argonui/no-metadata-handling
Updated scenario reference card detection for removing
This commit is contained in:
commit
76e46d710f
@ -73,7 +73,7 @@ function copyScenarioReferenceCard()
|
|||||||
local obj = searchResult[1]
|
local obj = searchResult[1]
|
||||||
local md = JSON.decode(obj.getGMNotes()) or {}
|
local md = JSON.decode(obj.getGMNotes()) or {}
|
||||||
|
|
||||||
if md.type == "ScenarioReference" then
|
if obj.getName() == "Scenario" or md.type == "ScenarioReference" then
|
||||||
local trash = guidReferenceApi.getObjectByOwnerAndType(color, "Trash")
|
local trash = guidReferenceApi.getObjectByOwnerAndType(color, "Trash")
|
||||||
trash.putObject(obj)
|
trash.putObject(obj)
|
||||||
scenarioCard.clone({ position = cardPosition, snap_to_grid = true })
|
scenarioCard.clone({ position = cardPosition, snap_to_grid = true })
|
||||||
|
Loading…
Reference in New Issue
Block a user