.. | .. |
---|
3299 | 3299 | // SetPositionDelta(false, true, false); // ?? false); |
---|
3300 | 3300 | { |
---|
3301 | 3301 | if (support == null) |
---|
3302 | | - ObjEditor.LoadBVHFile(fullname, this, false, beginframe, lastframetest); |
---|
| 3302 | + { |
---|
| 3303 | + if (new File(fullname).exists()) |
---|
| 3304 | + ObjEditor.LoadBVHFile(fullname, this, false, beginframe, lastframetest); |
---|
| 3305 | + else |
---|
| 3306 | + { |
---|
| 3307 | + SetGlobalTransform(); |
---|
| 3308 | + Rewind(); |
---|
| 3309 | + Fade(); |
---|
| 3310 | + } |
---|
| 3311 | + } |
---|
3303 | 3312 | else |
---|
3304 | 3313 | { |
---|
3305 | | - try |
---|
3306 | | - { |
---|
| 3314 | +// try |
---|
| 3315 | +// { |
---|
3307 | 3316 | bvh = ((Mocap)support.get(mocapsupport++ % support.Size())).bvh; |
---|
3308 | 3317 | |
---|
3309 | 3318 | // SetPositionDelta(false, true, true, true); |
---|
3310 | 3319 | LoadData(); |
---|
3311 | 3320 | Rewind(); |
---|
3312 | 3321 | Fade(); |
---|
3313 | | - } |
---|
3314 | | - catch (Exception e) |
---|
3315 | | - { |
---|
3316 | | - e.printStackTrace(); |
---|
3317 | | - ObjEditor.LoadBVHFile(fullname, this, false, beginframe, lastframetest); |
---|
3318 | | - } |
---|
| 3322 | +// } |
---|
| 3323 | +// catch (Exception e) |
---|
| 3324 | +// { |
---|
| 3325 | +// System.err.println("An error occured while loading data. Use fallback by loading the file."); |
---|
| 3326 | +// //e.printStackTrace(); |
---|
| 3327 | +// try |
---|
| 3328 | +// { |
---|
| 3329 | +// ObjEditor.LoadBVHFile(fullname, this, false, beginframe, lastframetest); |
---|
| 3330 | +// } |
---|
| 3331 | +// catch (Exception e2) |
---|
| 3332 | +// { |
---|
| 3333 | +// System.err.println("Motion file not found: " + fullname); |
---|
| 3334 | +// } |
---|
| 3335 | +// } |
---|
3319 | 3336 | } |
---|
3320 | 3337 | } |
---|
3321 | 3338 | |
---|