Fix accidentally remaining hardcoded index
authorNikita Kitaev <nikitakit@gmail.com>
Sun, 4 Oct 2009 04:18:14 +0000 (21:18 -0700)
committerNikita Kitaev <nikitakit@gmail.com>
Sun, 4 Oct 2009 04:18:14 +0000 (21:18 -0700)
synfig-studio/src/synfigapp/actions/valuedescset.cpp

index 9b7a7d4..83b2646 100644 (file)
@@ -302,7 +302,7 @@ Action::ValueDescSet::prepare()
                case ValueBase::TYPE_VECTOR:
                {
                        Angle old_angle = (*(ValueNode_RadialComposite::Handle::cast_dynamic(
-                                                                        value_desc.get_value_node())->get_link(1)))(time).get(Angle());
+                                                                        value_desc.get_value_node())->get_link("theta")))(time).get(Angle());
                        Vector vect(value.get(Vector()));
                        components[0]=vect.mag();
                        Angle change = Angle(Angle::tan(vect[1],vect[0])) - old_angle;