Ver Fonte

Fix to properties storing (bad casting removed).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Kae..pl há 14 anos atrás
pai
commit
1403574835

+ 2 - 2
engine/src/blender/com/jme3/scene/plugins/blender/structures/Properties.java

@@ -315,7 +315,7 @@ public class Properties implements Cloneable, Savable {
 	}
 
 	@Override
-	@SuppressWarnings("rawtypes")
+	@SuppressWarnings({ "rawtypes", "unchecked" })
 	public void write(JmeExporter ex) throws IOException {
 		OutputCapsule oc = ex.getCapsule(this);
 		oc.write(name, "name", DEFAULT_NAME);
@@ -347,7 +347,7 @@ public class Properties implements Cloneable, Savable {
 						LOGGER.warning("Cannot save the property's value! Invalid array subtype! Property: name: " + name + "; subtype: " + subType);
 				}
 			case IDP_GROUP:
-				oc.write((Properties) value, "value", null);
+				oc.writeSavableArrayList((ArrayList<Properties>) value, "value", null);
 				break;
 			case IDP_DOUBLE:
 				oc.write((Double) value, "value", 0);