                         model.materials[i] = mat;
                 }
             }
-            
+
             // Create collision shape
             if (shapeType >= 0)
             {

                    shape.SetConvexHull(cache.GetResource("Model", "Models/" + GetFileNameAndExtension(collisionMeshName).Replaced(".mesh", ".mdl")), 0.1, 0, bodySize);
                    break;
                }
                
                shape.collisionLayer = collisionLayer;
                shape.collisionMask = collisionMask;
                shape.phantom = phantom;

    String materialListName = sceneResourcePath + "_tempmatlist_.txt";

    fileSystem.CreateDir(sceneResourcePath + "Models");

    Array<String> args;
    args.Push("model");
    args.Push("\"" + fileName + "\"");
