Connector shared_ptr keeps one owner and i don't know where it is!
This commit is contained in:
+3
-2
@@ -3,9 +3,10 @@
|
||||
#include "draggable.h"
|
||||
#include "vmath.h"
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace VISEQ::BASE {
|
||||
class Connectable : public Draggable{
|
||||
class Connectable : public Draggable {
|
||||
public:
|
||||
Connectable() {}
|
||||
Connectable(Vec2Df position) : Draggable(position) {}
|
||||
@@ -21,7 +22,7 @@ namespace VISEQ::BASE {
|
||||
virtual void init() {
|
||||
connectables.emplace_back(this);
|
||||
}
|
||||
|
||||
|
||||
virtual void drag(Vec2Df new_position) override {
|
||||
connecting = true;
|
||||
connecting_position = new_position;
|
||||
|
||||
Reference in New Issue
Block a user