mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
flattenShip kills effects now
This commit is contained in:
parent
b77514867b
commit
e438f27d76
@ -2453,7 +2453,13 @@ def superFlattenShip(ship):
|
||||
#PHASE 3: stop rocking task
|
||||
taskMgr.remove("shipRocking-%d"%(ship.getDoId()))
|
||||
|
||||
#PHASE 4: flatten strong!
|
||||
#PHASE 4: kill lamp effects
|
||||
from pirates.shipparts.DistributedShipDecor import DistributedShipDecor
|
||||
for DO in base.cr.doId2do.values():
|
||||
if(type(DO) == DistributedShipDecor):
|
||||
DO.prop.lanternGlowEffect.destroy()
|
||||
|
||||
#PHASE 5: flatten strong!
|
||||
return ship.flattenStrong()
|
||||
|
||||
def exceptionLogged(f):
|
||||
|
Loading…
x
Reference in New Issue
Block a user