From 56bbb780eea6bbfdbdc52b8251320459bc58a566 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 21 Dec 2009 20:04:03 +0000 Subject: [PATCH] set_failed on p3dcert failure --- direct/src/plugin/p3dInstance.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/plugin/p3dInstance.cxx b/direct/src/plugin/p3dInstance.cxx index be8ec36db5..710732fa2c 100644 --- a/direct/src/plugin/p3dInstance.cxx +++ b/direct/src/plugin/p3dInstance.cxx @@ -2979,6 +2979,10 @@ report_package_done(P3DPackage *package, bool success) { if (success) { mark_p3d_untrusted(); + } else if (!_p3d_trusted) { + // Oops, too bad. Couldn't get the p3dcert package, which means + // we can't approve the instance. + set_failed(); } return; }