Skip to content

Commit

Permalink
Merge pull request #2147 from gforney/master
Browse files Browse the repository at this point in the history
fix to code reading cadgeom data
  • Loading branch information
gforney authored Jan 3, 2025
2 parents 2e0831b + 0279103 commit 31431d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/shared/readcad.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ int ReadCADGeom(cadgeomdata *cd, const char *file, GLfloat block_shininess) {

int ReadCADGeomToCollection(cadgeom_collection *coll, const char *file,
GLfloat block_shininess) {
if(coll->capacity >= (coll->ncadgeom + 1)) {
if(coll->ncadgeom >= coll->capacity){
fprintf(stderr, "CADGeomCollection has exceeded capacity");
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/fds_smv_env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if exist %userprofile%\.bundle\smv_revision.txt (

:: ---- log entry date ----

set smvlogdate="2-Jan-2025"
set smvlogdate="3-Jan-2025"

:: ---- repo locations ----

Expand Down

0 comments on commit 31431d6

Please sign in to comment.