Fix issue and code style

This commit is contained in:
JeremyStar™ 2024-03-31 16:20:08 +02:00
parent 899bd338df
commit 71b78da86a
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -130,15 +130,15 @@ func get_scene_collection_list(type: CoreTypes.SceneType) -> Array[Node]:
var list: Array[Node] = []
for scene in scenes:
if scenes[scene]["type"] == type:
list.append(scene)
list.append(scenes[scene]["class"])
return list
# Return scene count in some scene collection
func get_scene_collection_count(type: CoreTypes.SceneType) -> int:
var amount: int = 0
for scene in scenes:
if scene[scene]["type"] == type:
amount = amount+1
if scenes[scene]["type"] == type:
amount += 1
return amount
# Return scene existance & scene collection