mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
minor fix to PfmVizzer::project()
This commit is contained in:
parent
335c80f8ac
commit
cbb55d02e6
@ -68,7 +68,11 @@ project(const Lens *lens) {
|
||||
|
||||
LPoint3 film;
|
||||
if (!lens->project(LCAST(PN_stdfloat, p), film)) {
|
||||
_pfm.set_point4(xi, yi, _pfm.get_no_data_value());
|
||||
if (_pfm.has_no_data_value()) {
|
||||
_pfm.set_point4(xi, yi, _pfm.get_no_data_value());
|
||||
} else {
|
||||
_pfm.set_point4(xi, yi, LVecBase4f(0, 0, 0, 0));
|
||||
}
|
||||
} else {
|
||||
p = to_uv.xform_point(LCAST(PN_float32, film));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user