1
0
Fork 0

Store the region name of the material in the region parameter

This commit is contained in:
Erik Hofman 2020-11-15 09:30:27 +01:00
parent 2b981b7ea7
commit dd59119570

View file

@ -674,6 +674,7 @@ static naRef f_geodinfo(naContext c, naRef me, int argc, naRef* args)
for (const std::string& n : mat->get_names()) for (const std::string& n : mat->get_names())
naVec_append(names, stringToNasal(c, n)); naVec_append(names, stringToNasal(c, n));
HASHSET("region", 6, stringToNasal(c, mat->get_region_name()));
HASHSET("names", 5, names); HASHSET("names", 5, names);
HASHSET("solid", 5, naNum(mat->get_solid())); HASHSET("solid", 5, naNum(mat->get_solid()));
HASHSET("friction_factor", 15, naNum(mat->get_friction_factor())); HASHSET("friction_factor", 15, naNum(mat->get_friction_factor()));