Disabled an optimization that was being too enthusiastic. It's not always safe to...
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_duplicate.h
index ef663d1..c55a90d 100644 (file)
@@ -41,14 +41,14 @@ class ValueNode_Duplicate : public LinkableValueNode
        ValueNode::RHandle from_;
        ValueNode::RHandle to_;
        ValueNode::RHandle step_;
-       mutable int index;
+       mutable Real index;
 
 public:
        typedef etl::handle<ValueNode_Duplicate> Handle;
        typedef etl::handle<const ValueNode_Duplicate> ConstHandle;
 
        ValueNode_Duplicate(const ValueBase::Type &x);
-       ValueNode_Duplicate(const ValueNode::Handle &x);
+       ValueNode_Duplicate(const ValueBase &x);
 
        virtual ValueBase operator()(Time t)const;
        void reset_index(Time t)const;