From 9d4cf1f21d083d50316701057dd2c3049cfeaf9d Mon Sep 17 00:00:00 2001 From: Tobias Schmidt <tobias.schmidt@unibas.ch> Date: Wed, 25 Jan 2012 15:24:00 +0100 Subject: [PATCH] fix ColorBy export --- modules/gfx/pymod/export_entity.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gfx/pymod/export_entity.cc b/modules/gfx/pymod/export_entity.cc index 6202bd1cc..d8ee10929 100644 --- a/modules/gfx/pymod/export_entity.cc +++ b/modules/gfx/pymod/export_entity.cc @@ -360,6 +360,8 @@ void export_Entity() .def("IsRenderModeEnabled", &Entity::IsRenderModeEnabled) .def("SetVisible", set_vis1, (arg("view"), arg("flag")=true)) .def("SetVisible", set_vis2, (arg("sel"), arg("flag")=true)) + .def("ColorBy", color_by_10) // this line must be before color_by_01 because + // of boost python overload resolution .def("ColorBy", color_by_01) .def("ColorBy", color_by_02) .def("ColorBy", color_by_03) @@ -369,7 +371,6 @@ void export_Entity() .def("ColorBy", color_by_07) .def("ColorBy", color_by_08) .def("ColorBy", color_by_09) - .def("ColorBy", color_by_10) .def("DetailColorBy", detail_color_by_02) COLOR_BY_DEF() .def("RadiusBy", radius_by_01) -- GitLab