diff --git a/modules/gfx/pymod/export_render_options.cc b/modules/gfx/pymod/export_render_options.cc index e3f46ea4d062ef1836798911426ba066b97dcc56..b1dbebcc3227e494196d11dcb69230d962406c37 100644 --- a/modules/gfx/pymod/export_render_options.cc +++ b/modules/gfx/pymod/export_render_options.cc @@ -105,9 +105,11 @@ void export_RenderOptions() .def("SetSphereRad", &CustomRenderOptions::SetSphereRad) .def("GetSphereRad", &CustomRenderOptions::GetSphereRad) .add_property("sphere_rad", &CustomRenderOptions::GetSphereRad, &CustomRenderOptions::SetSphereRad) + .add_property("sphere_radius", &CustomRenderOptions::GetSphereRad, &CustomRenderOptions::SetSphereRad) .def("SetBondRad", &CustomRenderOptions::SetBondRad) .def("GetBondRad", &CustomRenderOptions::GetBondRad) .add_property("bond_rad", &CustomRenderOptions::GetBondRad, &CustomRenderOptions::SetBondRad) + .add_property("bond_radius", &CustomRenderOptions::GetBondRad, &CustomRenderOptions::SetBondRad) ; class_<CartoonRenderOptions, boost::shared_ptr<CartoonRenderOptions>, bases<RenderOptions>, boost::noncopyable>("CartoonRenderOptions") diff --git a/modules/gui/pymod/scene/custom_widget.py b/modules/gui/pymod/scene/custom_widget.py index bbbbd5189ef0567d6fa368b35bcfadbf9922fe7d..7a7eb2e9283042f1ae8145870fc417b42e76cd3e 100644 --- a/modules/gui/pymod/scene/custom_widget.py +++ b/modules/gui/pymod/scene/custom_widget.py @@ -39,8 +39,8 @@ class CustomWidget(RenderModeWidget): max_arc_detail = 20 min_rad = 0.05 - max_bond_rad = 0.5 - max_sphere_rad = 1 + max_bond_rad = 1.0 + max_sphere_rad = 1.0