Fix typo in light3d (Texture -> Texture2D)

This commit is contained in:
NutmegStudio 2020-04-15 14:09:48 +07:00
parent c9de04b628
commit df863cf7ee
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ Light3D::BakeMode Light3D::get_bake_mode() const {
return bake_mode;
}
void Light3D::set_projector(const Ref<Texture> &p_texture) {
void Light3D::set_projector(const Ref<Texture2D> &p_texture) {
projector = p_texture;
RID tex_id = projector.is_valid() ? projector->get_rid() : RID();

View File

@ -126,7 +126,7 @@ public:
void set_bake_mode(BakeMode p_mode);
BakeMode get_bake_mode() const;
void set_projector(const Ref<Texture> &p_texture);
void set_projector(const Ref<Texture2D> &p_texture);
Ref<Texture2D> get_projector() const;
virtual AABB get_aabb() const;