// When a PasteCanvas layer has a non-zero 'time offset' parameter, should
// the waypoints shown for the canvas be adjusted? This currently only
// partially works - see the TODO at the end of layer_pastecanvas.cpp
-// #define ADJUST_WAYPOINTS_FOR_TIME_OFFSET
+#define ADJUST_WAYPOINTS_FOR_TIME_OFFSET
/* === T Y P E D E F S ===================================================== */
{
}
+#ifdef _DEBUG
+ const char *c_str()const;
+#endif
+
const GUID& get_guid()const { return guid; }
const Time& get_time()const { return time; }
Interpolation get_before()const { return before; }
return etl::handle<T>::cast_dynamic(synfig::find_node(guid));
}
+#ifdef _DEBUG
+template <typename T>
+synfig::String set_string(T start, T end)
+{
+ synfig::String ret("[");
+ bool started = false;
+
+ while (start != end)
+ {
+ if (started) ret += ", ";
+ else started = true;
+
+ ret += synfig::String((*start).c_str());
+ start++;
+ }
+
+ return ret + "]";
+}
+
+template <typename T>
+synfig::String set_string(T set)
+{
+ return set_string(set.begin(), set.end());
+}
+#endif // _DEBUG
+
typedef etl::handle<Node> NodeHandle;
}; // END of namespace synfig