Fixed formatting thanks to EmpirePhoenix

experimental
michael 10 years ago
parent a59f017710
commit 99d69d1d01
  1. 2
      .gitignore
  2. 2
      jme3-core/src/main/java/com/jme3/asset/cache/WeakRefCloneAssetCache.java
  3. 2
      jme3-core/src/main/java/com/jme3/material/TechniqueDef.java
  4. 1
      jme3-core/src/main/java/com/jme3/renderer/Caps.java
  5. 3
      jme3-core/src/plugins/java/com/jme3/material/plugins/J3MLoader.java

2
.gitignore vendored

@ -131,5 +131,3 @@
!/jme3-bullet-native/libs/native/osx/x86_64/libbulletjme.dylib
!/jme3-bullet-native/libs/native/linux/x86/libbulletjme.so
!/jme3-bullet-native/libs/native/linux/x86_64/libbulletjme.so
*.iml
/.idea/*

@ -33,7 +33,6 @@ package com.jme3.asset.cache;
import com.jme3.asset.AssetKey;
import com.jme3.asset.CloneableSmartAsset;
import java.lang.ref.PhantomReference;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
@ -124,6 +123,7 @@ public class WeakRefCloneAssetCache implements AssetCache {
public <T> void addToCache(AssetKey<T> originalKey, T obj) {
// Make room for new asset
removeCollectedAssets();
CloneableSmartAsset asset = (CloneableSmartAsset) obj;
// No circular references, since the original asset is

@ -50,8 +50,6 @@ public class TechniqueDef implements Savable {
*/
public static final int SAVABLE_VERSION = 1;
/**
* Describes light rendering mode.
*/

@ -315,6 +315,7 @@ public enum Caps {
* Supports 32-bit index buffers.
*/
IntegerIndexBuffer,
/**
* Partial support for non-power-of-2 textures, typically found
* on OpenGL ES 2 devices.

@ -222,7 +222,7 @@ public class J3MLoader implements AssetLoader {
}
}
// <TYPE> <NAME> [ "(" <FFBINDING> ")" ] [ ":" <DEFAULTVAL> ] [-LINEAR]
// <TYPE> <NAME> [ "(" <FFBINDING> ")" ] [-LINEAR] [ ":" <DEFAULTVAL> ]
private void readParam(String statement) throws IOException{
String name;
String defaultVal = null;
@ -240,6 +240,7 @@ public class J3MLoader implements AssetLoader {
statement = split[0].trim();
defaultVal = split[1].trim();
}
if (statement.endsWith("-LINEAR")) {
colorSpace = ColorSpace.Linear;
statement = statement.substring(0, statement.length() - "-LINEAR".length());

Loading…
Cancel
Save