- remove checks from UserData as apparently all kinds of data is stored there by jme3 now (Fixes Issue 402)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8247 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
6ed981db10
commit
a9f87c4df7
@ -40,6 +40,8 @@ import java.util.LinkedList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
import org.openide.nodes.PropertySupport;
|
import org.openide.nodes.PropertySupport;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
|
|
||||||
@ -73,7 +75,8 @@ public class UserDataProperty extends PropertySupport.ReadWrite<String> {
|
|||||||
} else if (type instanceof Long) {
|
} else if (type instanceof Long) {
|
||||||
return 4;
|
return 4;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unsupported type: " + type);
|
Logger.getLogger(UserDataProperty.class.getName()).log(Level.WARNING, "UserData not editable" + type.getClass());
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +111,7 @@ public class UserDataProperty extends PropertySupport.ReadWrite<String> {
|
|||||||
spatial.setUserData(name, Long.parseLong(val));
|
spatial.setUserData(name, Long.parseLong(val));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new UnsupportedOperationException();
|
// throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user