Merge pull request #29782 from JFonS/expose_camera_clip_offset

Expose ClippedCamera clip_offset
This commit is contained in:
Rémi Verschelde 2019-06-14 18:31:47 +02:00 committed by GitHub
commit 0b555fc70a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -869,6 +869,11 @@ void ClippedCamera::clear_exceptions() {
exclude.clear();
}
float ClippedCamera::get_clip_offset() const {
return clip_offset;
}
void ClippedCamera::set_clip_to_areas(bool p_clip) {
clip_to_areas = p_clip;
@ -912,6 +917,8 @@ void ClippedCamera::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_clip_to_areas", "enable"), &ClippedCamera::set_clip_to_areas);
ClassDB::bind_method(D_METHOD("is_clip_to_areas_enabled"), &ClippedCamera::is_clip_to_areas_enabled);
ClassDB::bind_method(D_METHOD("get_clip_offset"), &ClippedCamera::get_clip_offset);
ClassDB::bind_method(D_METHOD("set_clip_to_bodies", "enable"), &ClippedCamera::set_clip_to_bodies);
ClassDB::bind_method(D_METHOD("is_clip_to_bodies_enabled"), &ClippedCamera::is_clip_to_bodies_enabled);

View file

@ -234,6 +234,8 @@ public:
void remove_exception(const Object *p_object);
void clear_exceptions();
float get_clip_offset() const;
ClippedCamera();
~ClippedCamera();
};