Project

General

Profile

« Previous | Next » 

Revision e607083f

Added by Leszek Koltunski over 2 years ago

Simplify objectlib's API.
Correct a recently introduced bug with resetting texture maps.

View differences:

src/main/java/org/distorted/objectlib/main/TwistyObject.java
186 186
    if( mObjectScreenRatio>MAX_SIZE_CHANGE) mObjectScreenRatio = MAX_SIZE_CHANGE;
187 187
    if( mObjectScreenRatio<MIN_SIZE_CHANGE) mObjectScreenRatio = MIN_SIZE_CHANGE;
188 188

  
189
    mNodeScale= new Static3D(1,NODE_RATIO,1);
189
    mNodeScale= new Static3D(screenWidth,NODE_RATIO*screenWidth,screenWidth);
190 190
    mQuat = quat;
191 191

  
192 192
    mRotationAngle= new Dynamic1D();
......
386 386

  
387 387
///////////////////////////////////////////////////////////////////////////////////////////////////
388 388

  
389
  boolean shouldResetTextureMaps()
389
  public boolean shouldResetTextureMaps()
390 390
    {
391 391
    return false;
392 392
    }

Also available in: Unified diff