Project

General

Profile

« Previous | Next » 

Revision 3272cfb8

Added by Leszek Koltunski over 3 years ago

Actually reset Node's mLastTime back to 0 each time we attach it somewhere.

View differences:

src/main/java/org/distorted/library/main/DistortedNode.java
41 41
  {
42 42
  private static final int DEFAULT_FBO_SIZE = 100;
43 43

  
44
  private MeshBase mMesh;
45
  private DistortedEffects mEffects;
44
  private final MeshBase mMesh;
45
  private final DistortedEffects mEffects;
46
  private final InternalRenderState mState;
47
  private final InternalChildrenList mChildren;
48
  private InternalChildrenList.Parent mParent;
46 49
  private InternalSurface mSurface;
47
  private InternalRenderState mState;
48 50
  private InternalNodeData mData;
49
  private InternalChildrenList mChildren;
50
  private InternalChildrenList.Parent mParent;
51 51

  
52 52
  private int mFboW, mFboH, mFboDepthStencil;
53 53
  private boolean mRenderWayOIT;
......
282 282
    return fbo;
283 283
    }
284 284

  
285
///////////////////////////////////////////////////////////////////////////////////////////////////
286

  
287
  void resetLastTime()
288
    {
289
    mLastTime = 0;
290
    }
291

  
285 292
///////////////////////////////////////////////////////////////////////////////////////////////////
286 293

  
287 294
  void setParent(InternalChildrenList.Parent parent)
src/main/java/org/distorted/library/main/InternalChildrenList.java
45 45
      }
46 46
    }
47 47

  
48
  private ArrayList<Job> mJobs;
48
  private final ArrayList<Job> mJobs;
49
  private final InternalChildrenList.Parent mParent;
49 50
  private ArrayList<DistortedNode> mChildren;
50
  private InternalChildrenList.Parent mParent;
51 51
  private int mNumChildren;
52 52

  
53 53
  public interface Parent
......
126 126

  
127 127
  void attach(DistortedNode node)
128 128
    {
129
    node.resetLastTime();
129 130
    mJobs.add(new Job(ATTACH,node));
130 131
    InternalMaster.newSlave(this);
131 132
    }

Also available in: Unified diff