From dd5911957037868e9e8e327f4d126ebe8445c0d7 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Sun, 15 Nov 2020 09:30:27 +0100 Subject: [PATCH] Store the region name of the material in the region parameter --- src/Scripting/NasalPositioned.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Scripting/NasalPositioned.cxx b/src/Scripting/NasalPositioned.cxx index f300b075e..1e5918c3e 100644 --- a/src/Scripting/NasalPositioned.cxx +++ b/src/Scripting/NasalPositioned.cxx @@ -674,6 +674,7 @@ static naRef f_geodinfo(naContext c, naRef me, int argc, naRef* args) for (const std::string& n : mat->get_names()) naVec_append(names, stringToNasal(c, n)); + HASHSET("region", 6, stringToNasal(c, mat->get_region_name())); HASHSET("names", 5, names); HASHSET("solid", 5, naNum(mat->get_solid())); HASHSET("friction_factor", 15, naNum(mat->get_friction_factor()));