mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
minor refinement
This commit is contained in:
parent
fd6e2fc82a
commit
c60b5e7b6e
@ -1356,9 +1356,12 @@ uninstall_packages() {
|
|||||||
Packages::const_iterator pi;
|
Packages::const_iterator pi;
|
||||||
for (pi = _packages.begin(); pi != _packages.end(); ++pi) {
|
for (pi = _packages.begin(); pi != _packages.end(); ++pi) {
|
||||||
P3DPackage *package = (*pi);
|
P3DPackage *package = (*pi);
|
||||||
|
if (package != _image_package && package != _certlist_package &&
|
||||||
|
package != _p3dcert_package) {
|
||||||
package->uninstall();
|
package->uninstall();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: P3DInstance::uninstall_host
|
// Function: P3DInstance::uninstall_host
|
||||||
@ -1372,13 +1375,18 @@ uninstall_packages() {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void P3DInstance::
|
void P3DInstance::
|
||||||
uninstall_host() {
|
uninstall_host() {
|
||||||
|
uninstall_packages();
|
||||||
|
|
||||||
set<P3DHost *> hosts;
|
set<P3DHost *> hosts;
|
||||||
|
|
||||||
Packages::const_iterator pi;
|
Packages::const_iterator pi;
|
||||||
for (pi = _packages.begin(); pi != _packages.end(); ++pi) {
|
for (pi = _packages.begin(); pi != _packages.end(); ++pi) {
|
||||||
P3DPackage *package = (*pi);
|
P3DPackage *package = (*pi);
|
||||||
|
if (package != _image_package && package != _certlist_package &&
|
||||||
|
package != _p3dcert_package) {
|
||||||
hosts.insert(package->get_host());
|
hosts.insert(package->get_host());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
set<P3DHost *>::iterator hi;
|
set<P3DHost *>::iterator hi;
|
||||||
for (hi = hosts.begin(); hi != hosts.end(); ++hi) {
|
for (hi = hosts.begin(); hi != hosts.end(); ++hi) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user