From faa13adad3bd5fd2bd387399623c0b99ed4c4fe9 Mon Sep 17 00:00:00 2001 From: Ray Koopa Date: Wed, 18 Jan 2017 21:49:30 +0100 Subject: Fix editor method calls to is_visible for Spatial and CanvasItem and is_visible itself for Spatial --- scene/3d/spatial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/3d/spatial.cpp') diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp index 6843a7e9b3..69706a6039 100644 --- a/scene/3d/spatial.cpp +++ b/scene/3d/spatial.cpp @@ -620,7 +620,7 @@ void Spatial::set_visible(bool p_visible) { bool Spatial::is_visible() const { - return !data.visible; + return data.visible; } void Spatial::rotate(const Vector3& p_normal,float p_radians) { -- cgit v1.2.3