projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use get_param_vocab().size() as link counter. It is too slow.
[synfig.git]
/
synfig-core
/
src
/
synfig
/
value.cpp
diff --git
a/synfig-core/src/synfig/value.cpp
b/synfig-core/src/synfig/value.cpp
index
e5ef475
..
f9a41b7
100644
(file)
--- 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 ======================================================= */
/* === 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),
{
}
ValueBase::ValueBase(Type x):
type(x),
data(0),
- loop_(0)
+ loop_(0),
+ static_(0)
{
switch(type)
{
{
switch(type)
{
@@
-216,6
+217,7
@@
ValueBase::operator=(const ValueBase& x)
ref_count=x.ref_count;
}
loop_=x.loop_;
ref_count=x.ref_count;
}
loop_=x.loop_;
+ static_=x.static_;
return *this;
}
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)
{
// 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");
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");
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");
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");
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");
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");
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");
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");
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");
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");
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");
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");
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");
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;
case TYPE_NIL: return N_("nil");
default:
break;