From 3bff8681c5e011439deab4d2ed67005017e589cc Mon Sep 17 00:00:00 2001 From: Ansgar Philippsen <ansgar.philippsen@gmail.com> Date: Sat, 16 Jul 2011 10:47:13 -0400 Subject: [PATCH] tweaked custom render options py exports and gui widget --- modules/gfx/pymod/export_render_options.cc | 2 ++ modules/gui/pymod/scene/custom_widget.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/gfx/pymod/export_render_options.cc b/modules/gfx/pymod/export_render_options.cc index e3f46ea4d..b1dbebcc3 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 bbbbd5189..7a7eb2e92 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 -- GitLab