forked from bartvdbraak/blender
Changing KX_Camera.perspective didn't actually change the camera's perspective because the camera's matrix was cached. The setter for KX_Camera.perspective now invalidates the camera's matrix so it's recomputed with the change.
This commit is contained in:
parent
ac2e77cac5
commit
8abb58b7ce
@ -706,6 +706,7 @@ int KX_Camera::pyattr_set_perspective(void *self_v, const KX_PYATTRIBUTE_DEF *at
|
||||
}
|
||||
|
||||
self->m_camdata.m_perspective= param;
|
||||
self->InvalidateProjectionMatrix();
|
||||
return PY_SET_ATTR_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user