Skip to content

Commit 62ca620

Browse files
Fixed incorrect API calls
1 parent e2fc148 commit 62ca620

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

core/components/FixtureGroup.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func _add_group_items(group_items: Array) -> void:
168168
func _remove_fixture(fixture: Fixture, no_signal: bool = false) -> bool:
169169
if not _fixtures.has(fixture): return false
170170

171-
_fixtures[fixture].local_delete()
171+
_fixtures[fixture].delete()
172172
_fixtures.erase(fixture)
173173

174174
if not no_signal:

core/components/fixtures/DMXFixture.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ func get_current_value(p_zone: String, p_parameter: String, p_allow_default: boo
151151

152152
## Gets all the zones
153153
func get_zones() -> Array[String]:
154+
if not is_instance_valid(_manifest):
155+
return []
156+
154157
return _manifest.get_zones(_mode)
155158

156159

core/engine/Engine.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ func _set_file_name(p_file_name: String) -> void:
287287
file_name_changed.emit(_current_file_name)
288288

289289

290-
291290
## Internal: Resets this engine to its default state
292291
func _reset():
293292
print("Performing Engine Reset!")
@@ -296,4 +295,4 @@ func _reset():
296295

297296
for object_class_name: String in _config.root_classes:
298297
for component: EngineComponent in ComponentDB.get_components_by_classname(object_class_name):
299-
component.local_delete()
298+
component.delete()

0 commit comments

Comments
 (0)