performance warning

This commit is contained in:
David Rose 2005-04-10 16:11:07 +00:00
parent 52288af5a3
commit 8b9b3f6602

View File

@ -1823,7 +1823,7 @@ primitive_body:
}
} else if (cmp_nocase_uh(name, "perspective") == 0) {
if (primitive->is_of_type(EggPoint::get_class_type())) {
DCAST(EggPoint, primitive)->set_perspective(value);
DCAST(EggPoint, primitive)->set_perspective(value != 0);
} else {
eggyywarning("scalar perspective is only meaningful for points.");
}