Fixed fp option
This commit is contained in:
parent
25ee1fefce
commit
7a73be82ab
@ -50,7 +50,6 @@ fn main() {
|
|||||||
.arg(Arg::with_name("first person")
|
.arg(Arg::with_name("first person")
|
||||||
.short("f")
|
.short("f")
|
||||||
.long("first-person")
|
.long("first-person")
|
||||||
.takes_value(false)
|
|
||||||
.help("Uses first person controls instead of orbit controls"))
|
.help("Uses first person controls instead of orbit controls"))
|
||||||
.arg(Arg::with_name("verbose")
|
.arg(Arg::with_name("verbose")
|
||||||
.short("v")
|
.short("v")
|
||||||
@ -125,7 +124,7 @@ fn main() {
|
|||||||
|
|
||||||
camera.z_near = 0.0001;
|
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())
|
Box::new(FirstPersonControls::new())
|
||||||
} else {
|
} else {
|
||||||
Box::new(OrbitControls::new(
|
Box::new(OrbitControls::new(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user