Skip to content

Commit

Permalink
Merge pull request #5341 from NREL/fix_floorJS_issue
Browse files Browse the repository at this point in the history
Fix floorplanjs issue
  • Loading branch information
wenyikuang authored Jan 14, 2025
2 parents afef7c9 + d25307b commit 9db4909
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utilities/geometry/FloorplanJS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1078,8 +1078,7 @@ ThreeScene FloorplanJS::toThreeScene(bool openstudioFormat) const {
for (Json::ArrayIndex storyIdx = 0; storyIdx < storyN; ++storyIdx) {

if (checkKeyAndType(stories[storyIdx], "name", Json::stringValue)) {
std::string storyName = stories[storyIdx].get("name", storyName).asString();
buildingStoryNames.push_back(storyName);
buildingStoryNames.push_back(stories[storyIdx].get("name", "").asString());
}

std::string storyColor;
Expand Down

0 comments on commit 9db4909

Please sign in to comment.