#include "valuenode_anglestring.h"
#include "valuenode_intstring.h"
#include "valuenode_log.h"
+#include "valuenode_pow.h"
+#include "valuenode_compare.h"
+#include "valuenode_not.h"
+#include "valuenode_and.h"
+#include "valuenode_or.h"
#include "layer.h"
ADD_VALUENODE(ValueNode_Logarithm, "logarithm", _("Logarithm"), RELEASE_VERSION_0_61_09); // SVN r2034
ADD_VALUENODE(ValueNode_Greyed, "greyed", _("Greyed"), RELEASE_VERSION_0_61_10); // SVN r2305
+ ADD_VALUENODE(ValueNode_Pow, "power", _("Power"), RELEASE_VERSION_0_61_10); // SVN r2362
+ ADD_VALUENODE(ValueNode_Compare, "compare", _("Compare"), RELEASE_VERSION_0_61_10); // SVN r2364
+ ADD_VALUENODE(ValueNode_Not, "not", _("Not"), RELEASE_VERSION_0_61_10); // SVN r2364
+ ADD_VALUENODE(ValueNode_And, "and", _("And"), RELEASE_VERSION_0_61_10); // SVN r2364
+ ADD_VALUENODE(ValueNode_Or, "or", _("Or"), RELEASE_VERSION_0_61_10); // SVN r2364
#undef ADD_VALUENODE
#undef ADD_VALUENODE2
if(set_link_vfunc(i,x))
{
+ // Fix 2412072: remove the previous link from the parent_set unless one of the other links is also
+ // using it when we convert a value to 'switch', both 'on' and 'off' are linked to the same valuenode
+ // if we then disconnect one of the two, the one we disconnect is set to be a new valuenode_const
+ // and the previously shared value is removed from the parent set even though the other is still
+ // using it
if(previous)
- remove_child(previous.get());
+ {
+ int size = link_count(), index;
+ for (index=0; index < size; ++index)
+ {
+ if (i == index) continue;
+ if (get_link(index) == previous)
+ break;
+ }
+ if (index == size)
+ remove_child(previous.get());
+ }
add_child(x.get());
if(!x->is_exported() && get_parent_canvas())