using namespace std;
using namespace etl;
-#define DEBUGPOINT() fprintf(stderr,__FILE__":%d: Debugpoint\n",__LINE__)
-
/* === C L A S S E S ======================================================= */
int generic_pen_test(int w, int h)
fputc(0,file.get()); // background color
fputc(0,file.get()); // Pixel Aspect Ratio
- DEBUGPOINT();
-
if(!local_palette)
{
- DEBUGPOINT();
curr_palette=Palette::grayscale(256/(1<<(8-rootsize))-1);
output_curr_palette();
}
if(loop_count && multi_image)
{
- DEBUGPOINT();
fputc(33,file.get()); // 33 (hex 0x21) GIF Extension code
fputc(255,file.get()); // 255 (hex 0xFF) Application Extension Label
fputc(11,file.get()); // 11 (hex (0x0B) Length of Application Block
fputc((loop_count&0x0000ff00)>>8,file.get());
fputc(0,file.get()); // 0 (hex 0x00) a Data Sub-block Terminator.
}
- DEBUGPOINT();
return true;
}
Importer::Handle importer(Importer::open(temp_file));
- DEBUGPOINT();
-
if(!importer)
{
if(cb)cb->error(_("Unable to open ")+temp_file);
return false;
}
- DEBUGPOINT();
-
if(!importer->get_frame(surface,0,cb))
{
if(cb)cb->error(_("Unable to get frame from ")+temp_file);
Surface bleh(surface);
surface=bleh;
-
//remove(temp_file.c_str());
- DEBUGPOINT();
return true;
#else
switch(color_type)
{
case PNG_COLOR_TYPE_RGB:
- DEBUGPOINT();
for(y=0;y<surface_buffer.get_h();y++)
for(x=0;x<surface_buffer.get_w();x++)
{
break;
case PNG_COLOR_TYPE_RGB_ALPHA:
- DEBUGPOINT();
for(y=0;y<surface_buffer.get_h();y++)
for(x=0;x<surface_buffer.get_w();x++)
{
return;
}
- DEBUGPOINT();
-
png_read_end(png_ptr, end_info);
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
fclose(file);
png_mptr::~png_mptr()
{
- DEBUGPOINT();
}
bool
{
//if(is_inline() && parent_) assert(0);
_CanvasCounter::counter--;
- //DEBUGPOINT();
clear();
begin_delete();
}
return parent_->add_value_node(x,id);
// throw runtime_error("You cannot add a ValueNode to an inline Canvas");
- //DEBUGPOINT();
if(x->is_exported())
throw runtime_error("ValueNode is already exported");
try
{
- //DEBUGPOINT();
if(PlaceholderValueNode::Handle::cast_dynamic(value_node_list_.find(id)))
throw Exception::IDNotFound("add_value_node()");
- //DEBUGPOINT();
throw Exception::IDAlreadyExists(id);
}
catch(Exception::IDNotFound)
{
- //DEBUGPOINT();
x->set_id(id);
x->set_parent_canvas(this);
synfig::error("Unable to add ValueNode");
throw std::runtime_error("Unable to add ValueNode");
}
- //DEBUGPOINT();
return;
}
void
Canvas::push_back(etl::handle<Layer> x)
{
-// DEBUGPOINT();
// int i(x->count());
insert(end(),x);
//if(x->count()!=i+1)synfig::info("push_back before %d, after %d",i,x->count());
void
Canvas::push_front(etl::handle<Layer> x)
{
-// DEBUGPOINT();
// int i(x->count());
insert(begin(),x);
//if(x->count()!=i+1)synfig::error("push_front before %d, after %d",i,x->count());
void
KeyframeList::sync()
{
- //DEBUGPOINT();
//synfig::info("PRE-SORT:");
//dump();
sort(begin(),end());
//synfig::info("POST-SORT:");
//dump();
- //DEBUGPOINT();
}
KeyframeList::iterator
if(depth==MAX_DEPTH)
{
- DEBUGPOINT();
// if we are at the extent of our depth,
// then we should just return whatever is under us.
return context.accelerated_render(surface,quality,renddesc,cb);
bool
ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb)
{
-// DEBUGPOINT();
int frame=round_to_int(time*fps);
-// DEBUGPOINT();
if(!filename_list.size())
{
return false;
}
-// DEBUGPOINT();
if(frame<0)frame=0;
if(frame>=(signed)filename_list.size())frame=filename_list.size()-1;
-// DEBUGPOINT();
// See if that frame is cached
std::list<std::pair<String,Surface> >::iterator iter;
for(iter=frame_cache.begin();iter!=frame_cache.end();++iter)
{
if(iter->first==filename_list[frame])
{
-// DEBUGPOINT();
surface.mirror(iter->second);
return static_cast<bool>(surface);
}
Importer::Handle importer(Importer::open(filename_list[frame]));
-// DEBUGPOINT();
-
if(!importer)
{
if(cb)cb->error(_("Unable to open ")+filename_list[frame]);
return false;
}
-// DEBUGPOINT();
-
if(!importer->get_frame(surface,0,cb))
{
if(cb)cb->error(_("Unable to get frame from ")+filename_list[frame]);
return false;
}
-// DEBUGPOINT();
-
if(frame_cache.size()>=LIST_IMPORTER_CACHE_SIZE)
frame_cache.pop_front();
-// DEBUGPOINT();
-
frame_cache.push_back(std::pair<String,Surface>(filename_list[frame],surface));
-// DEBUGPOINT();
-
surface.mirror(frame_cache.back().second);
-// DEBUGPOINT();
-
return static_cast<bool>(surface);
}
return ValueBase(parse_canvas(element,canvas,true));
else
{
- DEBUGPOINT();
error_unexpected_element(element,element->get_name());
}
value_node_count--;
begin_delete();
-
- //DEBUGPOINT();
}
void
{
ui_manager->insert_action_group(group,0);
return;
- DEBUGPOINT();
std::list<Glib::RefPtr<Gtk::ActionGroup> > prev_groups(ui_manager->get_action_groups());
std::list<Glib::RefPtr<Gtk::ActionGroup> >::reverse_iterator iter;
- DEBUGPOINT();
for(iter=prev_groups.rbegin();iter!=prev_groups.rend();++iter)
{
- DEBUGPOINT();
if(*iter && (*iter)->get_name()!="menus")
{
synfig::info("Removing action group "+(*iter)->get_name());
ui_manager->remove_action_group(*iter);
}
}
- DEBUGPOINT();
ui_manager->insert_action_group(group,0);
- DEBUGPOINT();
for(;!prev_groups.empty();prev_groups.pop_front())
{
if(prev_groups.front() && prev_groups.front()!=group && prev_groups.front()->get_name()!="menus")
ui_manager->insert_action_group(prev_groups.front(),1);
}
- DEBUGPOINT();
}
*/
class Preferences : public synfigapp::Settings
#define DEFAULT_TIME_WINDOW_SIZE (10.0)
-/*
-#ifdef DEBUGPOINT
-#undef DEBUGPOINT
-#endif
-#define DEBUGPOINT()
-*/
-
#ifndef SMALL_BUTTON
#define SMALL_BUTTON(button,stockid,tooltip) \
button = manage(new class Gtk::Button()); \
{
// assert(view->layer_tree);
- if(!view->layer_tree) { DEBUGPOINT(); synfig::error("%s:%d canvas_view.layer_tree not defined!?", __FILE__, __LINE__); return LayerList(); }
+ if(!view->layer_tree) { synfig::error("%s:%d canvas_view.layer_tree not defined!?", __FILE__, __LINE__); return LayerList(); }
return view->layer_tree->get_selected_layers();
}
{
// assert(view->layer_tree);
- if(!view->layer_tree) { DEBUGPOINT(); synfig::error("%s:%d canvas_view.layer_tree not defined!?", __FILE__, __LINE__); return 0; }
+ if(!view->layer_tree) { synfig::error("%s:%d canvas_view.layer_tree not defined!?", __FILE__, __LINE__); return 0; }
return view->layer_tree->get_selected_layer();
}
{
// assert(view->layer_tree);
- if(!view->layer_tree) { DEBUGPOINT(); synfig::error("%s:%d canvas_view.layer_tree not defined!?", __FILE__, __LINE__); return; }
+ if(!view->layer_tree) { synfig::error("%s:%d canvas_view.layer_tree not defined!?", __FILE__, __LINE__); return; }
view->layer_tree->select_layers(layer_list);
//view->get_smach().process_event(EVENT_REFRESH_DUCKS);
{
// assert(view->layer_tree);
- if(!view->layer_tree) { DEBUGPOINT(); synfig::error("canvas_view.layer_tree not defined!?"); return; }
+ if(!view->layer_tree) { synfig::error("canvas_view.layer_tree not defined!?"); return; }
view->layer_tree->select_layer(layer);
//view->queue_rebuild_ducks();
}
break;
case GDK_MOTION_NOTIFY:
- //DEBUGPOINT();
//if(selection && dragging)
// selected_time=((float)event->motion.x-(float)cell_area.get_x())/(float)cell_area.get_width()*(adjustment->get_upper()-adjustment->get_lower())+adjustment->get_lower();
return true;
break;
case GDK_BUTTON_RELEASE:
{
- DEBUGPOINT();
-
//selected_time=((float)event->button.x-(float)cell_area.get_x())/(float)cell_area.get_width()*(adjustment->get_upper()-adjustment->get_lower())+adjustment->get_lower();
dragging=false;
}
~ValueBase_Entry()
{
- DEBUGPOINT();
}
void on_editing_done()
for(iter = children.begin(); iter != children.end(); ++iter)
{
Gtk::TreeRow row=*iter;
- //DEBUGPOINT();
refresh_row(row);
}
}
ChildrenTreeStore::execute_changed_value_nodes()
{
Profiler profiler("ChildrenTreeStore::execute_changed_value_nodes()");
- DEBUGPOINT();
if(!replaced_set_.empty())
rebuild_value_nodes();
//synfig::warning("Nav: It hath succeeded!!!");
//assert(renderer && renderer->has_success());
- DEBUGPOINT();
//synfig::warning("Nav: now we know it really succeeded");
if(!*surface)
{
void
Dock_Params::init_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
- DEBUGPOINT();
Gtk::TreeView* tree_view(
static_cast<Gtk::TreeView*>(canvas_view->get_ext_widget(get_name()))
);
IconController::get_tool_cursor(const Glib::ustring& name,const Glib::RefPtr<Gdk::Window>& window)
{
Glib::RefPtr<Gdk::Pixmap> pixmap;
- DEBUGPOINT();
pixmap=Gdk::Pixmap::create(window, 64, 64, 8);
- DEBUGPOINT();
pixmap->set_colormap(window->get_colormap());
//pixmap->set_colormap(Gdk::Colormap::create(pixmap->get_visual(),false));
- DEBUGPOINT();
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
- DEBUGPOINT();
pixbuf=Gtk::Button().render_icon(Gtk::StockID("synfig-"+name),Gtk::ICON_SIZE_SMALL_TOOLBAR);
- DEBUGPOINT();
pixbuf->render_to_drawable_alpha(
pixmap,
0,0 // Dither X,Y
);
*/
- DEBUGPOINT();
Gdk::Color FG("#000000");
Gdk::Color BG("#FF00FF");
- DEBUGPOINT();
return Gdk::Cursor(pixmap, pixmap, FG, BG, 0, 0);
}
dialog.add_button(Gtk::StockID("gtk-cancel"),0);
dialog.show();
- DEBUGPOINT();
if(dialog.run()==0 || widget_waypoint_model.get_waypoint_model().is_trivial())
return;
- DEBUGPOINT();
synfigapp::Action::PassiveGrouper group(canvas_interface->get_instance().get(),_("Set Waypoints"));
std::list<synfigapp::ValueDesc>::iterator iter;
}
catch(std::exception x)
{
- DEBUGPOINT();
g_warning(x.what());
}
}
if(iter!=old_keyframe_list.end() && new_index!=old_index)
{
- DEBUGPOINT();
std::vector<int> new_order;
for(unsigned int i=0;i<old_keyframe_list.size();i++)
{
}
catch(std::exception x)
{
- DEBUGPOINT();
g_warning(x.what());
}
}
action->set_param("dest_canvas",dest_canvas);
if(canvas_interface()->get_instance()->perform_action(action))
{
- DEBUGPOINT();
ret=true;
}
else
{
- DEBUGPOINT();
passive_grouper.cancel();
return false;
}
bool
LayerGroupTreeStore::on_group_removed(synfig::String group)
{
- //DEBUGPOINT();
-
Gtk::TreeModel::Children::iterator iter;
if(find_group_row(group,iter) && iter->children().size()==0)
erase(iter);
bool
LayerGroupTreeStore::on_group_changed(synfig::String /*group*/)
{
- //DEBUGPOINT();
return true;
}
{
if(!layer->get_canvas())
return;
- //DEBUGPOINT();
Gtk::TreeModel::Children::iterator iter;
if(!find_group_row(group, iter))
iter=on_group_added(group);
{
if(!layer->get_canvas())
return;
- //DEBUGPOINT();
Gtk::TreeModel::Children::iterator iter;
if(!find_group_row(group, iter))
return;
}
iter=children().end();
- //DEBUGPOINT();
//return false;
}
}
iter=children().end();
- //DEBUGPOINT();
//return false;
}
synfig::info("Dragged data of target \"%s\"",gdk_atom_name(selection_data->target));
synfig::info("Dragged selection=\"%s\"",gdk_atom_name(selection_data->selection));
- DEBUGPOINT();
-
Gtk::TreeModel::Path path;
Gtk::TreeViewColumn *column;
int cell_x, cell_y;
if(get_selection()
Gtk::TreeRow row = *(get_selection()->get_selected());
- DEBUGPOINT();
if(synfig::String(gdk_atom_name(selection_data->target))=="LAYER" && (bool)row[model.is_layer])
{
- DEBUGPOINT();
Layer* layer(((Layer::Handle)row[model.layer]).get());
assert(layer);
selection_data.set(8, reinterpret_cast<const guchar*>(&layer), sizeof(layer));
return;
}
- DEBUGPOINT();
}
void
}
/*
- //DEBUGPOINT();
Gtk::TreeModel::Children::iterator iter;
if(find_layer_row(handle,iter))
{
- //DEBUGPOINT();
Gtk::TreeModel::Children children(iter->children());
for(iter = children.begin(); iter && iter != children.end(); ++iter)
{
if((Glib::ustring)(*iter)[model.param_name]==param_name)
{
- //DEBUGPOINT();
Gtk::TreeRow row=*iter;
refresh_row(row);
return;
}
}
}
- //DEBUGPOINT();
rebuild();
*/
}
}
iter=children().end();
- //DEBUGPOINT();
//return false;
}
if(value_prev.get_parent_value_node()==value_next.get_parent_value_node() &&
value_prev.get_parent_value_node()!=value_desc.get_parent_value_node())
{
- DEBUGPOINT();
vertex_list.erase(iter);
done=false;
break;
// if(value_prev.get_value_node()==value_desc.get_value_node() ||
// value_desc.get_value_node()==value_next.get_value_node())
// {
- // // DEBUGPOINT();
// vertex_list.erase(iter);
// done=false;
// printf("erased node - i = %d\n", i);
// // if previous is the same as next, remove previous? or next?
// if(value_prev.get_value_node()==value_next.get_value_node())
// {
- // // DEBUGPOINT();
// vertex_list.erase(next);
// // vertex_list.erase(prev);
// done=false;
// strprintf("same parent, different points this %d < next-1 %d",
// value_desc.get_index(), ((value_next.get_index()-1))),
// current);
- // // DEBUGPOINT();
// for (int index = value_desc.get_index()+1; index < value_next.get_index(); index++)
// {
// printf("inserting up %d\n", index);
// strprintf("same parent, different points next %d < this-1 %d",
// value_next.get_index(), ((value_desc.get_index()-1))),
// current);
- // // DEBUGPOINT();
// for (int index = value_desc.get_index()-1; index > value_next.get_index(); index--)
// {
// printf("inserting down %d\n", index);
if((vertex.get_vertex()-vertex_next.get_vertex()).mag_squared()<radius*radius)
{
printf("in one - it's close\n");
- // DEBUGPOINT();
ValueNode_Composite::Handle value_node;
ValueNode_Composite::Handle value_node_next;
value_node=ValueNode_Composite::Handle::cast_dynamic(value_desc.get_value_node().clone());
synfig::info(__FILE__":%d: Unable to properly connect blines.",__LINE__);
continue;
}
- // DEBUGPOINT();
// \todo if next isn't split, don't we want to copy its 'Tangent 1' instead?
value_node->set_link(5,value_node_next->get_link(5)); // Tangent 2
value_node->set_link(3,ValueNode_Const::create(true)); // Split Tangents
else if (value_prev.parent_is_value_node())
{
printf("in two - it's far\n");
- // DEBUGPOINT();
// \todo this only makes sense if prev is on the same bline
printf("this is index %d\n", value_desc.get_index());
printf("prev is index %d\n", value_prev.get_index());
if (value_desc.get_index()<LinkableValueNode::Handle::cast_static(value_desc.get_parent_value_node())->link_count()-1)
{
printf("in two - b\n");
- // DEBUGPOINT();
printf("inserting node with index %d\n", value_desc.get_index()+1);
vertex_list.insert(next,
synfigapp::ValueDesc(value_desc.get_parent_value_node(),
if(value_desc.get_index()>0)
{
printf("in two - a\n");
- // DEBUGPOINT();
printf("inserting node on this line with index %d\n",
value_desc.get_index()-1);
vertex_list.insert(next,
dialog.add_button(Gtk::StockID("gtk-cancel"),0);
dialog.show();
- DEBUGPOINT();
if(dialog.run()==0)
return;
- DEBUGPOINT();
synfigapp::Action::PassiveGrouper group(get_canvas_interface()->get_instance().get(),_("Set Waypoints"));
std::list<synfigapp::ValueDesc>::iterator iter;
void
Widget_CompSelect::delete_instance(etl::handle<studio::Instance> instance)
{
- DEBUGPOINT();
refresh();
if(selected_instance==instance)
void
Widget_ValueBase::activate()
{
- //DEBUGPOINT();
signal_activate()();
}
switch(event->type)
{
case GDK_BUTTON_PRESS:
- DEBUGPOINT();
if(dragging==DRAG_NONE)
{
- DEBUGPOINT();
dragging=DRAG_GUIDE;
curr_guide=get_guide_list_x().insert(get_guide_list_x().begin());
curr_guide_is_x=true;
return true;
break;
case GDK_BUTTON_RELEASE:
- DEBUGPOINT();
if(dragging==DRAG_GUIDE && curr_guide_is_x==true)
{
- DEBUGPOINT();
dragging=DRAG_NONE;
get_guide_list_x().erase(curr_guide);
}
{
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
}
{
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- //DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
}
{
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- //DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
}
Canvas::Handle canvas=canvas_specific->get_canvas();
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- //DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
Canvas::Handle canvas=canvas_specific->get_canvas();
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
void
Action::PassiveGrouper::request_redraw(etl::handle<CanvasInterface> x)
{
-/* DEBUGPOINT();
- if(instance_->group_stack_.empty())
+/* if(instance_->group_stack_.empty())
{
if(x!=canvas_interface_)
{
- DEBUGPOINT();
x->signal_dirty_preview()();
}
}
else
{
- DEBUGPOINT();
if(instance_->group_stack_.back()==this)
{
- DEBUGPOINT();
redraw_requested_=true;
}
else
{
- DEBUGPOINT();
instance_->group_stack_.back()->request_redraw(x);
redraw_requested_=false;
}
- DEBUGPOINT();
}
- DEBUGPOINT();
*/
if(x)
{
if(instance_->group_stack_.empty())
{
assert(canvas_interface_);
- DEBUGPOINT();
canvas_interface_->signal_dirty_preview()();
}
else
Time time(get_canvas()->keyframe_list().find(keyframe)->get_time());
std::vector<synfigapp::ValueDesc>::iterator iter;
- DEBUGPOINT();
for(iter=value_desc_list.begin();iter!=value_desc_list.end();++iter)
{
ValueDesc& value_desc(*iter);
if (value_desc.get_index()==4) {
printf("copying change to tangent 2\n");
- DEBUGPOINT();
ValueNode_Composite::Handle parent_value_node;
parent_value_node=parent_value_node.cast_dynamic(value_desc.get_parent_value_node());
if(!action->is_ready())
throw Error(Error::TYPE_NOTREADY);
- DEBUGPOINT();
add_action_front(action);
}
else
value_node=value_node.cast_dynamic(value_desc.get_value_node());
}
- DEBUGPOINT();
if(!value_node)
throw Error(_("Direct manipulation of this ValueNode type is not yet supported"));
if(!action->is_ready())
throw Error(Error::TYPE_NOTREADY);
- DEBUGPOINT();
add_action(action);
return;
ACTION_SET_VERSION(Action::WaypointSetSmart,"0.0");
ACTION_SET_CVS_ID(Action::WaypointSetSmart,"$Id$");
-
-/*#ifdef DEBUGPOINT
-#undef DEBUGPOINT
-#endif
-#define DEBUGPOINT()
-*/
/* === G L O B A L S ======================================================= */
/* === P R O C E D U R E S ================================================= */
if(name=="value_node" && param.get_type()==Param::TYPE_VALUENODE)
{
value_node=ValueNode_Animated::Handle::cast_dynamic(param.get_value_node());
- DEBUGPOINT();
if(time_set)
calc_waypoint();
if(name=="waypoint" && param.get_type()==Param::TYPE_WAYPOINT && !time_set)
{
waypoint=param.get_waypoint();
- DEBUGPOINT();
return true;
}
if(value_node)
calc_waypoint();
- DEBUGPOINT();
return true;
}
void
Action::WaypointSetSmart::calc_waypoint()
{
- DEBUGPOINT();
Time time=waypoint.get_time();
try
{
try {
times.insert(value_node->find(waypoint)->get_time());
// synfig::info(__FILE__":%d: value_node->find(waypoint)->get_time()=%s",__LINE__,value_node->find(waypoint)->get_time().get_string().c_str());
-// DEBUGPOINT();
}catch (...) { }
-// DEBUGPOINT();
// First we need to to add any waypoints necessary to
// maintain the integrity of the keyframes.
if(get_edit_mode()&MODE_ANIMATE_PAST) try
// synfig::info(__FILE__":%d: prev_keyframe->time=%s",__LINE__,keyframe.get_time().get_string().c_str());
// synfig::info(__FILE__":%d: waypoint->time=%s",__LINE__,waypoint.get_time().get_string().c_str());
-// DEBUGPOINT();
if(times.count(keyframe.get_time()))
{
-// DEBUGPOINT();
throw int();
}
if(waypoint.get_time().is_equal(keyframe.get_time()))
{
-// DEBUGPOINT();
throw int();
}
times.insert(keyframe.get_time());
-// DEBUGPOINT();
try
{
value_node->find(keyframe.get_time());
}
}
catch(Error x) { throw x; }
- catch(synfig::Exception::NotFound) { DEBUGPOINT(); }
- catch(int) { DEBUGPOINT(); }
- catch(...) { DEBUGPOINT(); }
- //DEBUGPOINT();
+ catch(synfig::Exception::NotFound) { }
+ catch(int) { }
+ catch(...) { }
- //DEBUGPOINT();
if(get_edit_mode()&MODE_ANIMATE_FUTURE)try
{
Time curr_time(waypoint.get_time());
//while(value_node->waypoint_list().back().get_time()>=curr_time)
{
- //DEBUGPOINT();
// Try to find next keyframe
//synfig::info("FUTURE waypoint.get_time()=%s",waypoint.get_time().get_string().c_str());
Keyframe keyframe(*get_canvas()->keyframe_list().find_next(curr_time));
//synfig::info("FUTURE keyframe.get_time()=%s",keyframe.get_time().get_string().c_str());
curr_time=keyframe.get_time();
- //DEBUGPOINT();
if(times.count(keyframe.get_time())|| waypoint.get_time().is_equal(keyframe.get_time()))
throw int();
else
times.insert(keyframe.get_time());
- //DEBUGPOINT();
try
{
add_action(action);
}
}
- //DEBUGPOINT();
}
catch(Error x) { throw x; }
- catch(synfig::Exception::NotFound) { DEBUGPOINT(); }
- catch(int) { DEBUGPOINT(); }
- catch(...) { DEBUGPOINT(); }
- //DEBUGPOINT();
+ catch(synfig::Exception::NotFound) { }
+ catch(int) { }
+ catch(...) { }
}
void
Action::WaypointSetSmart::prepare()
{
- //DEBUGPOINT();
clear();
times.clear();
try
{
//synfig::info("WaypointSetSmart: Replace?");
- //DEBUGPOINT();
// Check to see if a waypoint exists at this point in time
WaypointList::iterator iter=value_node->find(waypoint.get_time());
try
{
//synfig::info("WaypointSetSmart: Add?");
- //DEBUGPOINT();
// At this point we know that the old waypoint doesn't exist,
// so we need to create it.
Action::Handle action(WaypointAdd::create());