more corrections in diagnostic messages
This commit is contained in:
parent
2356320d30
commit
75112201db
@ -299,7 +299,7 @@ public class AudioNode extends Node implements AudioSource {
|
|||||||
*/
|
*/
|
||||||
public void setAudioData(AudioData audioData, AudioKey audioKey) {
|
public void setAudioData(AudioData audioData, AudioKey audioKey) {
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
throw new IllegalStateException("Cannot change data once its set");
|
throw new IllegalStateException("Cannot change data once it's set");
|
||||||
}
|
}
|
||||||
|
|
||||||
data = audioData;
|
data = audioData;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -1073,7 +1073,7 @@ final class BinaryInputCapsule implements InputCapsule {
|
|||||||
else {
|
else {
|
||||||
logger.log(
|
logger.log(
|
||||||
Level.WARNING,
|
Level.WARNING,
|
||||||
"Your export has been saved with an incorrect encoding for it's String fields which means it might not load correctly " +
|
"Your export has been saved with an incorrect encoding for its String fields which means it might not load correctly " +
|
||||||
"due to encoding issues. You should probably re-export your work. See ISSUE 276 in the jME issue tracker."
|
"due to encoding issues. You should probably re-export your work. See ISSUE 276 in the jME issue tracker."
|
||||||
);
|
);
|
||||||
// We use ISO8859_1 to be consistent across platforms. We could default to native encoding, but this would lead to inconsistent
|
// We use ISO8859_1 to be consistent across platforms. We could default to native encoding, but this would lead to inconsistent
|
||||||
|
@ -203,7 +203,7 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
|
|||||||
public void run(){
|
public void run(){
|
||||||
if (listener == null) {
|
if (listener == null) {
|
||||||
throw new IllegalStateException("SystemListener is not set on context!"
|
throw new IllegalStateException("SystemListener is not set on context!"
|
||||||
+ "Must set with JmeContext.setSystemListner().");
|
+ "Must set with JmeContext.setSystemListener().");
|
||||||
}
|
}
|
||||||
|
|
||||||
loadNatives();
|
loadNatives();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -180,7 +180,7 @@ public class KernelAdapter extends Thread
|
|||||||
if( reliable ) {
|
if( reliable ) {
|
||||||
// If it's a reliable connection then it's slightly more
|
// If it's a reliable connection then it's slightly more
|
||||||
// concerning but this can happen all the time for a UDP endpoint.
|
// concerning but this can happen all the time for a UDP endpoint.
|
||||||
log.log( Level.WARNING, "Recieved message from unconnected endpoint:" + p + " message:" + m );
|
log.log( Level.WARNING, "Received message from unconnected endpoint:" + p + " message:" + m );
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2018 jMonkeyEngine
|
* Copyright (c) 2015-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -111,17 +111,17 @@ public abstract class AbstractMessageDelegator<S extends MessageConnection>
|
|||||||
if( MessageConnection.class.isAssignableFrom(parms[0]) ) {
|
if( MessageConnection.class.isAssignableFrom(parms[0]) ) {
|
||||||
messageIndex++;
|
messageIndex++;
|
||||||
} else {
|
} else {
|
||||||
log.finest("First paramter is not a MessageConnection or subclass.");
|
log.finest("First parameter is not a MessageConnection or subclass.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( messageType == null && !Message.class.isAssignableFrom(parms[messageIndex]) ) {
|
if( messageType == null && !Message.class.isAssignableFrom(parms[messageIndex]) ) {
|
||||||
log.finest("Second paramter is not a Message or subclass.");
|
log.finest("Second parameter is not a Message or subclass.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if( messageType != null && !parms[messageIndex].isAssignableFrom(messageType) ) {
|
if( messageType != null && !parms[messageIndex].isAssignableFrom(messageType) ) {
|
||||||
log.log(Level.FINEST, "Second paramter is not a {0}", messageType);
|
log.log(Level.FINEST, "Second parameter is not a {0}", messageType);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -630,7 +630,7 @@ public class GltfLoader implements AssetLoader {
|
|||||||
|
|
||||||
JsonObject camObj = cameras.get(i).getAsJsonObject();
|
JsonObject camObj = cameras.get(i).getAsJsonObject();
|
||||||
String type = getAsString(camObj, "type");
|
String type = getAsString(camObj, "type");
|
||||||
assertNotNull(type, "No type defined ofr camera");
|
assertNotNull(type, "No type defined for camera");
|
||||||
JsonObject camData = camObj.getAsJsonObject(type);
|
JsonObject camData = camObj.getAsJsonObject(type);
|
||||||
if (type.equals("perspective")) {
|
if (type.equals("perspective")) {
|
||||||
float aspectRatio = getAsFloat(camData, "aspectRation", 1f);
|
float aspectRatio = getAsFloat(camData, "aspectRation", 1f);
|
||||||
@ -673,7 +673,7 @@ public class GltfLoader implements AssetLoader {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Integer textureIndex = getAsInteger(texture, "index");
|
Integer textureIndex = getAsInteger(texture, "index");
|
||||||
assertNotNull(textureIndex, "Texture as no index");
|
assertNotNull(textureIndex, "Texture has no index");
|
||||||
assertNotNull(textures, "There are no textures, yet one is referenced by a material");
|
assertNotNull(textures, "There are no textures, yet one is referenced by a material");
|
||||||
|
|
||||||
JsonObject textureData = textures.get(textureIndex).getAsJsonObject();
|
JsonObject textureData = textures.get(textureIndex).getAsJsonObject();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user