X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvalue.cpp;h=f9a41b7c7a7293d2566f98a1b7bf417430de6428;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=e5ef475ee77410e27dac984428f63faaa2c6f6e6;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/value.cpp b/synfig-core/src/synfig/value.cpp index e5ef475..f9a41b7 100644 --- a/synfig-core/src/synfig/value.cpp +++ b/synfig-core/src/synfig/value.cpp @@ -57,14 +57,15 @@ using namespace etl; /* === M E T H O D S ======================================================= */ -ValueBase::ValueBase():type(TYPE_NIL),data(0),ref_count(0),loop_(0) +ValueBase::ValueBase():type(TYPE_NIL),data(0),ref_count(0),loop_(0),static_(0) { } ValueBase::ValueBase(Type x): type(x), data(0), - loop_(0) + loop_(0), + static_(0) { switch(type) { @@ -216,6 +217,7 @@ ValueBase::operator=(const ValueBase& x) ref_count=x.ref_count; } loop_=x.loop_; + static_=x.static_; return *this; } @@ -264,33 +266,33 @@ ValueBase::type_name(Type id) // don't internationalize these type names - they're using in .sif files switch(id) { - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_BOOL: return N_("bool"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_INTEGER: return N_("integer"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_ANGLE: return N_("angle"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_TIME: return N_("time"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_REAL: return N_("real"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_VECTOR: return N_("vector"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_COLOR: return N_("color"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_SEGMENT: return N_("segment"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_BLINEPOINT: return N_("bline_point"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_LIST: return N_("list"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_CANVAS: return N_("canvas"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_STRING: return N_("string"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_GRADIENT: return N_("gradient"); - /* TRANSLATORS: this is the name of a type -- see http://synfig.org/Types */ + /* TRANSLATORS: this is the name of a type -- see http://synfig.org/wiki/Dev:Types */ case TYPE_NIL: return N_("nil"); default: break;