mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 18:59:59 +01:00
Clone Source loading fixed and simplified
Fixed loading order. Removed the option of origin selection for Clone: not meaningful anymore with chain of clones.
This commit is contained in:
@@ -25,20 +25,10 @@ public:
|
||||
void accept (Visitor& v) override;
|
||||
|
||||
// implementation of cloning mechanism
|
||||
CloneSource *clone(uint64_t id = 0) override;
|
||||
inline void detach() { origin_ = nullptr; }
|
||||
inline Source *origin() const { return origin_; }
|
||||
|
||||
// Clone properties
|
||||
typedef enum {
|
||||
CLONE_TEXTURE = 0,
|
||||
CLONE_RENDER
|
||||
} CloneSourceProvenance;
|
||||
static const char* cloning_provenance_label[2];
|
||||
|
||||
void setCloningProvenance(CloneSourceProvenance m) { provenance_ = m; }
|
||||
CloneSourceProvenance cloningProvenance() const { return provenance_; }
|
||||
|
||||
void setDelay(double second);
|
||||
double delay() const { return delay_; }
|
||||
|
||||
@@ -65,7 +55,6 @@ protected:
|
||||
|
||||
// control
|
||||
bool paused_;
|
||||
CloneSourceProvenance provenance_;
|
||||
|
||||
// connecting line
|
||||
class DotLine *connection_;
|
||||
|
||||
Reference in New Issue
Block a user