Browse Source

Loading constraints for blender 2.49 fix (warning is now shown when blender version is 2.50 or higher).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8182 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Kae..pl 14 years ago
parent
commit
0094d37e0f

+ 1 - 1
engine/src/blender/com/jme3/scene/plugins/blender/constraints/ConstraintHelper.java

@@ -44,7 +44,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
 	 * @throws BlenderFileException
 	 * @throws BlenderFileException
 	 */
 	 */
 	public Map<Long, List<Constraint>> loadConstraints(Structure objectStructure, DataRepository dataRepository) throws BlenderFileException {
 	public Map<Long, List<Constraint>> loadConstraints(Structure objectStructure, DataRepository dataRepository) throws BlenderFileException {
-		if (blenderVersion < 250) {//TODO
+		if (blenderVersion >= 250) {//TODO
 			LOGGER.warning("Loading of constraints not yet implemented for version 2.5x !");
 			LOGGER.warning("Loading of constraints not yet implemented for version 2.5x !");
 			return new HashMap<Long, List<Constraint>>(0);
 			return new HashMap<Long, List<Constraint>>(0);
 		}
 		}