Ticket #245 (closed bug: fixed)
Container animation not playing when same container is opened multiple times
Reported by: | beliar | Owned by: | beliar |
---|---|---|---|
Priority: | minor | Milestone: | Techdemo 1 |
Component: | scripts | Version: | trunk |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Department: |
Description
When the same animated footlocker is opened multiple times the animation does not play anymore.
This is caused by the call to self.hide_container in create_box_gui in hud.py which itself calls box_container.container.close() which will close the container - but not the gui - thus playing the close animation since the change from the OPENING state to CLOSING state is a valid change.
This can be fixed by adding self.box_container = None at the end of hide_container which means that the code in hide_container will detect that it currently has to box_container and will not execute the close function. I have added a patch to the ticket that does just that.
Attachments
Change History
Changed 10 years ago by beliar
- Attachment ContainerAnimationPatch.diff added
Patch that fixes this bug