Skip to content

Commit 57ea8a8

Browse files
committed
fixed resizable objects bug
1 parent d127319 commit 57ea8a8

17 files changed

+17
-17
lines changed

src/objects/data/BangMultiplexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void BangMultiplexer::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
171171
prevW = this->width;
172172
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
173173
}
174-
if(this->width != prevH){
174+
if(this->height != prevH){
175175
prevH = this->height;
176176
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
177177
}

src/objects/data/FloatMultiplexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void FloatMultiplexer::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
169169
prevW = this->width;
170170
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
171171
}
172-
if(this->width != prevH){
172+
if(this->height != prevH){
173173
prevH = this->height;
174174
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
175175
}

src/objects/data/FloatsToVector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void FloatsToVector::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
167167
prevW = this->width;
168168
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
169169
}
170-
if(this->width != prevH){
170+
if(this->height != prevH){
171171
prevH = this->height;
172172
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
173173
}

src/objects/data/VectorConcat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void VectorConcat::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
168168
prevW = this->width;
169169
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
170170
}
171-
if(this->width != prevH){
171+
if(this->height != prevH){
172172
prevH = this->height;
173173
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
174174
}

src/objects/data/VectorGate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void VectorGate::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
169169
prevW = this->width;
170170
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
171171
}
172-
if(this->width != prevH){
172+
if(this->height != prevH){
173173
prevH = this->height;
174174
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
175175
}

src/objects/gui/moComment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void moComment::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
152152
prevW = this->width;
153153
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
154154
}
155-
if(this->width != prevH){
155+
if(this->height != prevH){
156156
prevH = this->height;
157157
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
158158
}

src/objects/gui/moSonogram.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void moSonogram::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
198198
prevW = this->width;
199199
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
200200
}
201-
if(this->width != prevH){
201+
if(this->height != prevH){
202202
prevH = this->height;
203203
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
204204
}

src/objects/gui/moValuePlotter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void moValuePlotter::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
163163
prevW = this->width;
164164
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
165165
}
166-
if(this->width != prevH){
166+
if(this->height != prevH){
167167
prevH = this->height;
168168
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
169169
}

src/objects/gui/moVideoViewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void moVideoViewer::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
140140
prevW = this->width;
141141
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
142142
}
143-
if(this->width != prevH){
143+
if(this->height != prevH){
144144
prevH = this->height;
145145
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
146146
}

src/objects/logic/Gate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void Gate::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
175175
prevW = this->width;
176176
this->setCustomVar(static_cast<float>(prevW),"WIDTH");
177177
}
178-
if(this->width != prevH){
178+
if(this->height != prevH){
179179
prevH = this->height;
180180
this->setCustomVar(static_cast<float>(prevH),"HEIGHT");
181181
}

0 commit comments

Comments
 (0)