File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ moComment::moComment() : PatchObject("comment"){
5050
5151 this ->initInletsState ();
5252
53- bang = false ;
53+ bang = false ;
54+ nextFrame = true ;
5455
5556 this ->width *= 2 ;
5657
@@ -98,10 +99,16 @@ void moComment::updateObjectContent(map<int,shared_ptr<PatchObject>> &patchObjec
9899 actualComment.append (*static_cast <string *>(_inletParams[1 ]));
99100 }
100101
101- if (bang){
102+ if (!nextFrame){
103+ nextFrame = true ;
102104 *static_cast <string *>(_outletParams[0 ]) = actualComment;
103105 }
104106
107+ if (bang){
108+ nextFrame = false ;
109+ *static_cast <string *>(_outletParams[0 ]) = actualComment+" " ;
110+ }
111+
105112
106113 if (!loaded){
107114 loaded = true ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class moComment : public PatchObject {
5959
6060 string actualComment;
6161 bool bang;
62+ bool nextFrame;
6263
6364 float prevW, prevH;
6465
You can’t perform that action at this time.
0 commit comments