X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Finstance.cpp;h=92fd2398a8e1853354287713ea257964c664fb60;hb=04295e119995f2bf29f75be0d0aec22e93bc0fad;hp=8bdfc3d9ef31a8d13bd14058dbbcfa2b2a362cef;hpb=c2813b4d63804cac9b4067146a9e6eca717cb3e4;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/instance.cpp b/synfig-studio/trunk/src/synfigapp/instance.cpp index 8bdfc3d..92fd239 100644 --- a/synfig-studio/trunk/src/synfigapp/instance.cpp +++ b/synfig-studio/trunk/src/synfigapp/instance.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -38,6 +38,9 @@ #include #include #include +#include +#include +#include #include #include "general.h" @@ -67,6 +70,9 @@ synfigapp::is_editable(synfig::ValueNode::Handle value_node) || ValueNode_Composite::Handle::cast_dynamic(value_node) || ValueNode_RadialComposite::Handle::cast_dynamic(value_node) || ValueNode_Reference::Handle::cast_dynamic(value_node) + || ValueNode_BLineCalcVertex::Handle::cast_dynamic(value_node) + || ValueNode_BLineCalcTangent::Handle::cast_dynamic(value_node) + || ValueNode_BLineCalcWidth::Handle::cast_dynamic(value_node) ) return true; return false; @@ -118,8 +124,10 @@ Instance::set_file_name(const synfig::String &name) Instance::~Instance() { instance_map_.erase(canvas_); - synfig::info("studio::Instance::~Instance(): Deleted"); -} // END of studio::Instance::~Instance() + + if (getenv("SYNFIG_DEBUG_DESTRUCTORS")) + synfig::info("Instance::~Instance(): Deleted"); +} handle Instance::find_canvas_interface(synfig::Canvas::Handle canvas)