diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-25 08:37:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-25 08:37:38 +0200 |
commit | 490aef93699abc00da58f73b1596fb3473fd53c6 (patch) | |
tree | 7912c7a540eca6b09392bbd2aa2f30fefe37f51a /editor/spatial_editor_gizmos.h | |
parent | b1c0e45b03aa14453846c9a888763077eef2476b (diff) | |
parent | cacced7e507f7603bacc03ae2616e58f0ede122a (diff) |
Merge pull request #10581 from hpvb/fix-gcc6+
Make cast_to a static member of Object.
Diffstat (limited to 'editor/spatial_editor_gizmos.h')
-rw-r--r-- | editor/spatial_editor_gizmos.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/spatial_editor_gizmos.h b/editor/spatial_editor_gizmos.h index 28feee3fcc..4769e5d765 100644 --- a/editor/spatial_editor_gizmos.h +++ b/editor/spatial_editor_gizmos.h @@ -93,7 +93,7 @@ class EditorSpatialGizmo : public SpatialEditorGizmo { Vector<Instance> instances; Spatial *spatial_node; - void _set_spatial_node(Node *p_node) { set_spatial_node(p_node->cast_to<Spatial>()); } + void _set_spatial_node(Node *p_node) { set_spatial_node(Object::cast_to<Spatial>(p_node)); } protected: void add_lines(const Vector<Vector3> &p_lines, const Ref<Material> &p_material, bool p_billboard = false); |