diff options
| author | Juan Linietsky | 2017-01-13 10:45:50 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-13 10:45:50 -0300 |
| commit | 04c749a1f034c0b2256fdca0ca2675f696b490e8 (patch) | |
| tree | c908a64edf3f61bba725051c8f60c6a108acbb84 /tools/editor/animation_editor.h | |
| parent | a2903fc51d1d20eba4dc451bdacbe477d6670163 (diff) | |
| download | godot-04c749a1f034c0b2256fdca0ca2675f696b490e8.tar.gz godot-04c749a1f034c0b2256fdca0ca2675f696b490e8.tar.zst godot-04c749a1f034c0b2256fdca0ca2675f696b490e8.zip | |
New API for visibility in both CanvasItem and Spatial
visible (property) - access set_visible(bool) is_visible()
is_visible_in_tree() - true when visible and parents visible
show() hide() - for convenience
Diffstat (limited to 'tools/editor/animation_editor.h')
| -rw-r--r-- | tools/editor/animation_editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/animation_editor.h b/tools/editor/animation_editor.h index e81c46a99..8ae706dfa 100644 --- a/tools/editor/animation_editor.h +++ b/tools/editor/animation_editor.h @@ -347,7 +347,7 @@ public: void insert_value_key(const String& p_property, const Variant& p_value, bool p_advance); void insert_transform_key(Spatial *p_node,const String& p_sub,const Transform& p_xform); - void show_select_node_warning(bool p_show) { select_anim_warning->set_hidden(!p_show); } + void show_select_node_warning(bool p_show) { select_anim_warning->set_visible(p_show); } AnimationKeyEditor(); ~AnimationKeyEditor(); }; |
