From 618ccf57e3842ff47fbfe6eb5f4f31cc75fe0306 Mon Sep 17 00:00:00 2001
From: Ansgar Philippsen <ansgar.philippsen@gmail.com>
Date: Tue, 25 Jun 2013 12:23:20 -0400
Subject: [PATCH] added visible property to GfxObj

---
 modules/gfx/pymod/__init__.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/modules/gfx/pymod/__init__.py b/modules/gfx/pymod/__init__.py
index 7cb3cc514..d1b59f1a7 100644
--- a/modules/gfx/pymod/__init__.py
+++ b/modules/gfx/pymod/__init__.py
@@ -407,3 +407,15 @@ def ColladaExporter(file,scale=1.0,to_origin=True):
   e.to_origin=to_origin
   return e
 
+def _go_get_vis(go):
+  return go.IsVisible()
+
+def _go_set_vis(go,flag):
+  if flag:
+    go.Show()
+  else:
+    go.Hide()
+
+GfxObj.visible=property(_go_get_vis,_go_set_vis)
+
+
-- 
GitLab