Fix LoadError

This commit is contained in:
Roy Nieterau 2023-04-03 12:00:51 +02:00
parent 76c0a0266f
commit 35428df6b0

View file

@ -2,6 +2,7 @@ from openpype.pipeline import (
load,
get_representation_path,
)
from openpype.pipeline.load import LoadError
from openpype.hosts.substancepainter.api.pipeline import (
imprint_container,
set_container_metadata,
@ -105,7 +106,7 @@ class SubstanceLoadProjectMesh(load.LoaderPlugin):
if status == substance_painter.project.ReloadMeshStatus.SUCCESS:
print("Reload succeeded")
else:
raise LoaderError("Reload of mesh failed")
raise LoadError("Reload of mesh failed")
substance_painter.project.reload_mesh(path, settings, on_mesh_reload)