projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend the Add and Subtract ValueNodes to work with gradients.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode.cpp
b/synfig-core/trunk/src/synfig/valuenode.cpp
index
827ef4f
..
81a9fa2
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode.cpp
@@
-65,6
+65,9
@@
#include "valuenode_exp.h"
#include "valuenode_switch.h"
#include "valuenode_timeloop.h"
#include "valuenode_exp.h"
#include "valuenode_switch.h"
#include "valuenode_timeloop.h"
+#include "valuenode_reciprocal.h"
+#include "valuenode_duplicate.h"
+#include "valuenode_integer.h"
#include "layer.h"
#include "layer.h"
@@
-136,6
+139,9
@@
ValueNode::subsys_init()
ADD_VALUENODE(ValueNode_Exp, "exp", _("Exponential") );
ADD_VALUENODE(ValueNode_Switch, "switch", _("Switch") );
ADD_VALUENODE(ValueNode_TimeLoop, "timeloop", _("Time Loop") );
ADD_VALUENODE(ValueNode_Exp, "exp", _("Exponential") );
ADD_VALUENODE(ValueNode_Switch, "switch", _("Switch") );
ADD_VALUENODE(ValueNode_TimeLoop, "timeloop", _("Time Loop") );
+ ADD_VALUENODE(ValueNode_Reciprocal, "reciprocal", _("Reciprocal") );
+ ADD_VALUENODE(ValueNode_Duplicate, "duplicate", _("Duplicate") );
+ ADD_VALUENODE(ValueNode_Integer, "fromint", _("From Integer") );
#undef ADD_VALUENODE
#undef ADD_VALUENODE2
#undef ADD_VALUENODE
#undef ADD_VALUENODE2
@@
-159,19
+165,19
@@
ValueNode::subsys_stop()
for(iter=global_value_node_map.begin();iter!=global_value_node_map.end();++iter)
{
if(!iter->second->is_exported())
for(iter=global_value_node_map.begin();iter!=global_value_node_map.end();++iter)
{
if(!iter->second->is_exported())
- synfig::info(
"%s: count:%d name:%s type:%s"
,
+ synfig::info(
_("%s: count:%d name:%s type:%s")
,
iter->first.get_string().c_str(),
iter->second->count(),
iter->second->get_name().c_str(),
iter->first.get_string().c_str(),
iter->second->count(),
iter->second->get_name().c_str(),
- ValueBase::type_name(iter->second->get_type()).c_str()
+ ValueBase::type_
local_
name(iter->second->get_type()).c_str()
);
else
);
else
- synfig::info(
"%s: id:%s count:%d name:%s type:%s"
,
+ synfig::info(
_("%s: id:%s count:%d name:%s type:%s")
,
iter->first.get_string().c_str(),
iter->second->get_id().c_str(),
iter->second->count(),
iter->second->get_name().c_str(),
iter->first.get_string().c_str(),
iter->second->get_id().c_str(),
iter->second->count(),
iter->second->get_name().c_str(),
- ValueBase::type_name(iter->second->get_type()).c_str()
+ ValueBase::type_
local_
name(iter->second->get_type()).c_str()
);
}
}
);
}
}
@@
-249,8
+255,6
@@
ValueNode::~ValueNode()
value_node_count--;
begin_delete();
value_node_count--;
begin_delete();
-
- //DEBUGPOINT();
}
void
}
void