Project

General

Profile

« Previous | Next » 

Revision 337f4660

Added by Leszek Koltunski 8 months ago

remove 'MESH_NICE'

View differences:

src/main/java/org/distorted/tutorials/TutorialActivity.java
37 37
import org.distorted.os.OSInterface;
38 38
import org.distorted.purchase.PurchaseActivity;
39 39

  
40
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE;
41

  
42 40
///////////////////////////////////////////////////////////////////////////////////////////////////
43 41

  
44 42
public class TutorialActivity extends AppCompatActivity
......
217 215
    private void changeIfDifferent(int ordinal,ObjectControl control)
218 216
      {
219 217
      RubikObject object = RubikObjectList.getObject(ordinal);
220
      int meshState = object!=null ? object.getMeshState() : MESH_NICE;
221 218
      int iconMode  = TwistyObject.MODE_NORM;
222 219
      InputStream jsonStream = object==null ? null : object.getObjectStream(this);
223 220
      InputStream meshStream = object==null ? null : object.getMeshStream(this);
......
225 222
      TutorialSurfaceView view = findViewById(R.id.tutorialSurfaceView);
226 223
      OSInterface os = view.getInterface();
227 224
      InitAssets asset = new InitAssets(jsonStream,meshStream,os);
228
      control.changeIfDifferent(ordinal,name,meshState,iconMode,asset);
225
      control.changeIfDifferent(ordinal,name,iconMode,asset);
229 226
      }
230 227

  
231 228
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff