Fix issue and code style
This commit is contained in:
parent
52c6d029d9
commit
25c4667a05
1 changed files with 3 additions and 3 deletions
|
@ -130,15 +130,15 @@ func get_scene_collection_list(type: CoreTypes.SceneType) -> Array[Node]:
|
||||||
var list: Array[Node] = []
|
var list: Array[Node] = []
|
||||||
for scene in scenes:
|
for scene in scenes:
|
||||||
if scenes[scene]["type"] == type:
|
if scenes[scene]["type"] == type:
|
||||||
list.append(scene)
|
list.append(scenes[scene]["class"])
|
||||||
return list
|
return list
|
||||||
|
|
||||||
# Return scene count in some scene collection
|
# Return scene count in some scene collection
|
||||||
func get_scene_collection_count(type: CoreTypes.SceneType) -> int:
|
func get_scene_collection_count(type: CoreTypes.SceneType) -> int:
|
||||||
var amount: int = 0
|
var amount: int = 0
|
||||||
for scene in scenes:
|
for scene in scenes:
|
||||||
if scene[scene]["type"] == type:
|
if scenes[scene]["type"] == type:
|
||||||
amount = amount+1
|
amount += 1
|
||||||
return amount
|
return amount
|
||||||
|
|
||||||
# Return scene existance & scene collection
|
# Return scene existance & scene collection
|
||||||
|
|
Loading…
Reference in a new issue