Validate invalid components and *then* tick our frame participants for two
reasons: we don't want anything coming in between the call to tick() and the call to paint() and components will likely want to be validated before they are ticked if they happen to be a frame participant and are invalid. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1523 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: FrameManager.java,v 1.12 2002/06/19 00:52:34 mdb Exp $
|
||||
// $Id: FrameManager.java,v 1.13 2002/06/21 03:43:59 mdb Exp $
|
||||
|
||||
package com.threerings.media;
|
||||
|
||||
@@ -215,10 +215,6 @@ public class FrameManager
|
||||
*/
|
||||
protected void tickParticipants (long tickStamp)
|
||||
{
|
||||
// tick all of our frame participants
|
||||
_participantTickOp.setTickStamp(tickStamp);
|
||||
_participants.apply(_participantTickOp);
|
||||
|
||||
// validate any invalid components
|
||||
try {
|
||||
_remgr.validateComponents();
|
||||
@@ -226,6 +222,10 @@ public class FrameManager
|
||||
Log.warning("Failure validating components.");
|
||||
Log.logStackTrace(t);
|
||||
}
|
||||
|
||||
// tick all of our frame participants
|
||||
_participantTickOp.setTickStamp(tickStamp);
|
||||
_participants.apply(_participantTickOp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user