Skip to content
Snippets Groups Projects
Commit 13fa395e authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed BZDNG-300 (py export of GfxObj broken)

parent 30629dda
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ void export_GfxObj()
.value("TRANSPARENT_RENDER_PASS",TRANSPARENT_RENDER_PASS)
;
class_<GfxObjWrap, bases<GfxObjBase>, boost::noncopyable>("GfxObj",init<const std::string&>())
class_<GfxObjWrap, boost::shared_ptr<GfxObj>, bases<GfxObjBase>, boost::noncopyable>("GfxObj",init<const std::string&>())
.def("GetTF", &GfxObj::GetTF, return_value_policy<copy_const_reference>())
.def("SetTF", &GfxObj::SetTF)
.def("FlagRebuild",&GfxObj::FlagRebuild)
......
......@@ -55,7 +55,13 @@ class TestGfx(unittest.TestCase):
self.test_primlist()
self.test_entity_reset()
self.test_custom_gfx_obj()
self.test_gfxobj_conv()
def test_gfxobj_conv(self):
e=mol.CreateEntity()
gfx.Scene().Add(gfx.Entity("foo2",e))
gfx.Scene()["foo2"].SetColor(gfx.YELLOW)
def test_custom_gfx_obj(self):
myobj=MyGfxObj("foo")
gfx.Scene().Add(myobj)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment