mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
performance warning
This commit is contained in:
parent
52288af5a3
commit
8b9b3f6602
@ -1823,7 +1823,7 @@ primitive_body:
|
|||||||
}
|
}
|
||||||
} else if (cmp_nocase_uh(name, "perspective") == 0) {
|
} else if (cmp_nocase_uh(name, "perspective") == 0) {
|
||||||
if (primitive->is_of_type(EggPoint::get_class_type())) {
|
if (primitive->is_of_type(EggPoint::get_class_type())) {
|
||||||
DCAST(EggPoint, primitive)->set_perspective(value);
|
DCAST(EggPoint, primitive)->set_perspective(value != 0);
|
||||||
} else {
|
} else {
|
||||||
eggyywarning("scalar perspective is only meaningful for points.");
|
eggyywarning("scalar perspective is only meaningful for points.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user