/* === M A C R O S ========================================================= */
ACTION_INIT_NO_GET_LOCAL_NAME(Action::ValueDescSet);
-ACTION_SET_NAME(Action::ValueDescSet,"value_desc_set");
+ACTION_SET_NAME(Action::ValueDescSet,"ValueDescSet");
ACTION_SET_LOCAL_NAME(Action::ValueDescSet,N_("Set ValueDesc"));
ACTION_SET_TASK(Action::ValueDescSet,"set");
ACTION_SET_CATEGORY(Action::ValueDescSet,Action::CATEGORY_VALUEDESC);
(value_desc.get_index()==4 || value_desc.get_index()==5) &&
(*value_desc.get_parent_value_node())(time).get(BLinePoint()).get_split_tangent_flag()==false)
{
- printf("a tangent got changed - #%d\n", value_desc.get_index()-3);
-
{
ValueNode_Composite::Handle parent_value_node;
parent_value_node=parent_value_node.cast_dynamic(value_desc.get_parent_value_node());
Vector t1((*parent_value_node->get_link("t1"))(time));
Vector t2((*parent_value_node->get_link("t2"))(time));
- printf("current values are: t1(%.2f, %2.f) t2(%.2f, %.2f)\n", t1[0], t1[1], t2[0], t2[1]);
}
if (value_desc.get_index()==4) {
- printf("copying change to tangent 2\n");
ValueNode_Composite::Handle parent_value_node;
parent_value_node=parent_value_node.cast_dynamic(value_desc.get_parent_value_node());
assert(parent_value_node);
- Action::Handle action(Action::create("value_desc_set"));
+ Action::Handle action(Action::create("ValueDescSet"));
if(!action)
- throw Error(_("Unable to find action value_desc_set (bug)"));
+ throw Error(_("Unable to find action ValueDescSet (bug)"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
{
ValueDesc reference_value_desc(ValueNode_Reference::Handle::cast_dynamic(value_desc.get_value_node()),0);
- Action::Handle action(Action::create("value_desc_set"));
+ Action::Handle action(Action::create("ValueDescSet"));
if(!action)
- throw Error(_("Unable to find action value_desc_set (bug)"));
+ throw Error(_("Unable to find action ValueDescSet (bug)"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
{
ValueDesc component_value_desc(ValueNode_Composite::Handle::cast_dynamic(value_desc.get_value_node()),i);
- Action::Handle action(Action::create("value_desc_set"));
+ Action::Handle action(Action::create("ValueDescSet"));
if(!action)
- throw Error(_("Unable to find action value_desc_set (bug)"));
+ throw Error(_("Unable to find action ValueDescSet (bug)"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
{
ValueDesc component_value_desc(ValueNode_RadialComposite::Handle::cast_dynamic(value_desc.get_value_node()),i);
- Action::Handle action(Action::create("value_desc_set"));
+ Action::Handle action(Action::create("ValueDescSet"));
if(!action)
- throw Error(_("Unable to find action value_desc_set (bug)"));
+ throw Error(_("Unable to find action ValueDescSet (bug)"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
{
// we are splitting tangents
- Action::Handle action(Action::create("value_desc_set"));
+ Action::Handle action(Action::create("ValueDescSet"));
if(!action)
- throw Error(_("Unable to find action value_desc_set (bug)"));
+ throw Error(_("Unable to find action ValueDescSet (bug)"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
(Vector)((*parent_value_node->get_link("t2"))(time))) / 2);
{
- Action::Handle action(Action::create("value_desc_set"));
+ Action::Handle action(Action::create("ValueDescSet"));
if(!action)
- throw Error(_("Unable to find action value_desc_set (bug)"));
+ throw Error(_("Unable to find action ValueDescSet (bug)"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
}
{
- Action::Handle action(Action::create("value_desc_set"));
+ Action::Handle action(Action::create("ValueDescSet"));
if(!action)
- throw Error(_("Unable to find action value_desc_set (bug)"));
+ throw Error(_("Unable to find action ValueDescSet (bug)"));
action->set_param("canvas",get_canvas());
action->set_param("canvas_interface",get_canvas_interface());
}
else
{
- action=Action::create("value_node_replace");
+ action=Action::create("ValueNodeReplace");
action->set_param("dest",value_desc.get_value_node());
action->set_param("src",ValueNode::Handle(value_node));
}