Skip to content

Commit

Permalink
Fix incorrect showName_ deserialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
adalisk-emikhaylov committed Feb 27, 2024
1 parent 6c7c9ce commit 4fb7fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MRMesh/MRVisualObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ MR_SUPPRESS_WARNING_POP
globalAlpha_.get() = uint8_t( root["Colors"]["GlobalAlpha"].asUInt() );

if ( const auto& showNameJson = root["ShowName"]; showNameJson.isUInt() )
showName_ = ViewportMask( showNameJson.isUInt() );
showName_ = ViewportMask( showNameJson.asUInt() );

Vector4f resVec;
// labels
Expand Down

0 comments on commit 4fb7fdb

Please sign in to comment.