Fixed fp option

This commit is contained in:
Thomas Forgione 2018-04-17 10:59:17 +02:00
parent 25ee1fefce
commit 7a73be82ab
No known key found for this signature in database
GPG Key ID: C75CD416BD1FFCE1
1 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,6 @@ fn main() {
.arg(Arg::with_name("first person")
.short("f")
.long("first-person")
.takes_value(false)
.help("Uses first person controls instead of orbit controls"))
.arg(Arg::with_name("verbose")
.short("v")
@ -125,7 +124,7 @@ fn main() {
camera.z_near = 0.0001;
let mut controls: Box<Controls> = if matches.value_of("first person").is_some() {
let mut controls: Box<Controls> = if matches.is_present("first person") {
Box::new(FirstPersonControls::new())
} else {
Box::new(OrbitControls::new(