diff --git a/gprMax/input_cmds_geometry.py b/gprMax/input_cmds_geometry.py index 7dd61b4b..491321cc 100644 --- a/gprMax/input_cmds_geometry.py +++ b/gprMax/input_cmds_geometry.py @@ -93,7 +93,10 @@ def process_geometrycmds(geometry, G): # Update material type for material in G.materials: if material.numID >= numexistmaterials: - material.type += ', imported' + if material.type: + material.type += ', imported' + else: + material.type = 'imported' # See if geometry object file exists at specified path and if not try input file directory if not os.path.isfile(geofile):