projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added a new member "bool same_type_as(const Type testtype)const".
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
value.h
diff --git
a/synfig-core/trunk/src/synfig/value.h
b/synfig-core/trunk/src/synfig/value.h
index
53dc12a
..
3e843a6
100644
(file)
--- a/
synfig-core/trunk/src/synfig/value.h
+++ b/
synfig-core/trunk/src/synfig/value.h
@@
-204,6
+204,11
@@
public:
{
const Type testtype(get_type(x));
+ return same_type_as(testtype);
+ }
+
+ bool same_type_as(const Type testtype)const
+ {
if(testtype==type)return true;
if( (type==TYPE_REAL || type==TYPE_TIME) &&
(testtype==TYPE_REAL || testtype==TYPE_TIME) )