From e5ecbbfc167791de8a5ced3f17ce219d447aad83 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 15 Nov 2006 01:14:17 +0000 Subject: [PATCH] Fix lantern problem. --- direct/src/showbase/PythonUtil.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 6dc13d4d33..cac0c7c4b4 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -2466,8 +2466,9 @@ def superFlattenShip(ship): from pirates.shipparts.DistributedShipDecor import DistributedShipDecor for DO in base.cr.doId2do.values(): if(type(DO) == DistributedShipDecor): - DO.prop.lanternGlowEffect.destroy() - + if (hasattr(DO.prop, 'lanternGlowEffect')): + DO.prop.lanternGlowEffect.destroy() + #PHASE 5: flatten strong! return ship.flattenStrong()