Skip to content

Commit 16c2898

Browse files
committed
Closes #984
1 parent 494fe60 commit 16c2898

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Modules/Visualization/ShowFieldGlyphs.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,7 @@ void ShowFieldGlyphs::renderScalars(
483483
double resolution = static_cast<double>(my_state->getValue(ScalarsResolution).toInt());
484484
if (scale < 0) scale = 1.0;
485485
if (resolution < 3) resolution = 5;
486-
487-
std::stringstream ss;
488-
ss << state.mGlyphType << resolution << scale << colorScheme;
489-
490-
std::string uniqueNodeID = id + "scalar_glyphs" + ss.str();
491-
486+
492487
bool usePoints = state.mGlyphType == RenderState::GlyphType::POINT_GLYPH;
493488

494489
GeometryObject::SpireIBO::PRIMITIVE primIn = GeometryObject::SpireIBO::TRIANGLES;;
@@ -605,6 +600,11 @@ void ShowFieldGlyphs::renderScalars(
605600
}
606601
}
607602

603+
std::stringstream ss;
604+
ss << state.mGlyphType << resolution << scale << colorScheme;
605+
606+
std::string uniqueNodeID = id + "scalar_glyphs" + ss.str();
607+
608608
glyphs.buildObject(geom, uniqueNodeID, state.get(RenderState::USE_TRANSPARENT_NODES),
609609
my_state->getValue(ScalarsTransparencyValue).toDouble(), colorScheme, state, primIn, mesh->get_bounding_box());
610610
}

0 commit comments

Comments
 (0)