diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-21 16:48:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 16:48:29 +0100 |
commit | a77c862b18c283e2795a7bdf665b2d9cc9c3b4d2 (patch) | |
tree | 29701b02651ef860c1c610ec9145c799767d93b6 /scene/3d/sprite_3d.cpp | |
parent | 0447d6fc8edfd636fa6c859d32e76ec8a760f42e (diff) | |
parent | 3c0059650da3f1feb3c95364d571fe706826dec6 (diff) |
Merge pull request #36400 from reduz/variant-string-name
Added StringName as a variant type.
Diffstat (limited to 'scene/3d/sprite_3d.cpp')
-rw-r--r-- | scene/3d/sprite_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 610ae7fb13..169ba78aca 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -1130,7 +1130,7 @@ void AnimatedSprite3D::_bind_methods() { ADD_SIGNAL(MethodInfo("frame_changed")); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "frames", PROPERTY_HINT_RESOURCE_TYPE, "SpriteFrames"), "set_sprite_frames", "get_sprite_frames"); - ADD_PROPERTY(PropertyInfo(Variant::STRING, "animation"), "set_animation", "get_animation"); + ADD_PROPERTY(PropertyInfo(Variant::STRING_NAME, "animation"), "set_animation", "get_animation"); ADD_PROPERTY(PropertyInfo(Variant::INT, "frame"), "set_frame", "get_frame"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "playing"), "_set_playing", "_is_playing"); } |