Skip to content

Commit

Permalink
Legacy model load bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OKaluza committed Apr 9, 2017
1 parent dacff75 commit 186f1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ int Model::loadGeometry(int obj_id, int time_start, int time_stop, bool recurseT
case lucZLengthData:
case lucSizeData:
case lucMaxDataType:
if (strlen(data_label) > 0)
if (data_label && strlen(data_label) > 0)
//Use provided label from units field
g = active->read(obj, items, data, data_label);
else //Use default/legacy label
Expand Down

0 comments on commit 186f1f4

Please sign in to comment.