Commit ec737b6418f2bfd9a5e09c86f4ad96cee0e9897e

Authored by Jiaming Guo
1 parent ce1a6f5e

fixed scaling bugs

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -834,7 +834,7 @@ void glut_wheel(int wheel, int direction, int x, int y) { @@ -834,7 +834,7 @@ void glut_wheel(int wheel, int direction, int x, int y) {
834 GLdouble posX, posY, posZ; 834 GLdouble posX, posY, posZ;
835 window_to_world(posX, posY, posZ); // get the world coordinates 835 window_to_world(posX, posY, posZ); // get the world coordinates
836 836
837 - if (!to_select_pressure) { 837 + if (!to_select_pressure && (simulation || build_inlet_outlet) && !manufacture) {
838 bool flag = flow.epsilon_vertex((float)posX, (float)posY, (float)posZ, eps, scale, pressure_index); 838 bool flag = flow.epsilon_vertex((float)posX, (float)posY, (float)posZ, eps, scale, pressure_index);
839 if (flag && simulation && !glyph_mode) { 839 if (flag && simulation && !glyph_mode) {
840 float tmp_r; 840 float tmp_r;