Fix issue and code style

This commit is contained in:
JeremyStar™ 2024-03-31 16:20:08 +02:00
parent 52c6d029d9
commit 25c4667a05

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