diff --git a/cpp/src/svgsprite.cpp b/cpp/src/svgsprite.cpp index e9ab82b..3a46931 100644 --- a/cpp/src/svgsprite.cpp +++ b/cpp/src/svgsprite.cpp @@ -41,6 +41,7 @@ void SVGSprite::_register_methods() register_method("get_flip_v", &SVGSprite::get_flip_v); register_property("texture_flags", &SVGSprite::set_texture_flags, &SVGSprite::get_texture_flags, 7, GODOT_METHOD_RPC_MODE_DISABLED, GODOT_PROPERTY_USAGE_DEFAULT, GODOT_PROPERTY_HINT_FLAGS, "Mipmaps,Repeat,Filter,Anisotropic Filter,Convert to Linear,Mirrored Repeat,Video Surface"); + register_method("get_current_texture", &SVGSprite::get_current_texture); register_method("set_texture_flags", &SVGSprite::set_texture_flags); register_method("get_texture_flags", &SVGSprite::get_texture_flags); register_method("get_size", &SVGSprite::get_size); diff --git a/cpp/src/svgsprite.h b/cpp/src/svgsprite.h index e30ffd0..9755467 100644 --- a/cpp/src/svgsprite.h +++ b/cpp/src/svgsprite.h @@ -57,6 +57,7 @@ namespace godot bool get_flip_h() const { return flip_h; } void set_flip_v(bool p_flip_v); bool get_flip_v() const { return flip_v; } + Ref get_current_texture() const { return _ref_texture; } void set_texture_flags(int p_texture_flags); int get_texture_flags(void) const { return texture_flags; }