summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-01-19 16:12:00 +0100
committerGitHub <noreply@github.com>2017-01-19 16:12:00 +0100
commit8e84e53ebb676e43adc7ac4b3e8791790f555695 (patch)
treee13ca90f359d9ef9365e421c491f3c940d995b2f /scene
parent3a7923a857fdf7d93e43cd493a7c9c29d1eec753 (diff)
parentfaa13adad3bd5fd2bd387399623c0b99ed4c4fe9 (diff)
Merge pull request #7574 from RayKoopa/canvas_item_fix_is_hidden
Fix Spatial::is_visible and editor calls to CanvasItem/Spatial::is_visible
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/spatial.cpp2
1 files changed, 1 insertions, 1 deletions
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) {