Fixed fp option
This commit is contained in:
parent
25ee1fefce
commit
7a73be82ab
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue