Add bison model to default editor palette and object catalog
checkpoint / checkpoint (push) Successful in 6m10s
checkpoint / checkpoint (push) Successful in 6m10s
This commit is contained in:
@@ -48,11 +48,21 @@ func is_loaded() -> bool:
|
||||
func resolve(id: String) -> Dictionary:
|
||||
if not _loaded:
|
||||
return {}
|
||||
return _catalog.get(id, {})
|
||||
if _catalog.has(id):
|
||||
return _catalog[id]
|
||||
if (id.contains("bizon") or id.contains("bison")) and _catalog.has("bison"):
|
||||
return _catalog["bison"]
|
||||
return {}
|
||||
|
||||
|
||||
func has_object(id: String) -> bool:
|
||||
return _loaded and _catalog.has(id)
|
||||
if not _loaded:
|
||||
return false
|
||||
if _catalog.has(id):
|
||||
return true
|
||||
if (id.contains("bizon") or id.contains("bison")) and _catalog.has("bison"):
|
||||
return true
|
||||
return false
|
||||
|
||||
|
||||
func get_all_ids() -> Array[String]:
|
||||
|
||||
Reference in New Issue
Block a user