Skip to content

Commit 2065792

Browse files
committed
prop_studio: Prevent resource load in case the resource doesn't exists
1 parent 462cf1c commit 2065792

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

addons/godotvmf/entities/prop_studio.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func _entity_setup(_entity: VMFEntity) -> void:
2929

3030
VMFLogger.warn("Model not found: " + model_path);
3131
VMFCache.add_logged_file(model);
32+
return;
3233

3334
model_scene = ResourceLoader.load(model_path) as PackedScene;
3435
VMFCache.add_cached(model, model_scene);

0 commit comments

Comments
 (0)