File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 12
12
* See the License for the specific language governing permissions and
13
13
* limitations under the License.
14
14
*/
15
+ #include < AzCore/std/string/regex.h>
15
16
#include < Model/ModelLibrary.h>
16
17
#include < Utilities/RGLUtils.h>
17
18
#include < rgl/api/core.h>
@@ -68,10 +69,19 @@ namespace RGL
68
69
const auto modelLodAsset = lodAssets.begin ()->Get ();
69
70
const auto meshes = modelLodAsset->GetMeshes ();
70
71
72
+ const AZStd::regex excludeMeshRegex (" .*_nolidar.*" );
73
+
71
74
MeshMaterialSlotPairList modelMeshes;
72
75
modelMeshes.reserve (meshes.size ());
73
76
for (auto & mesh : meshes)
74
77
{
78
+ AZStd::smatch matches;
79
+ if (AZStd::regex_match (mesh.GetName ().GetCStr (), matches, excludeMeshRegex))
80
+ {
81
+ AZ_Info (" RGL" , " Ignoring mesh %s." , mesh.GetName ().GetCStr ());
82
+ continue ;
83
+ }
84
+
75
85
const AZStd::span<const rgl_vec3f> vertices = mesh.GetSemanticBufferTyped <rgl_vec3f>(AZ::Name (" POSITION" ));
76
86
const AZStd::span<const rgl_vec3i> indices = mesh.GetIndexBufferTyped <rgl_vec3i>();
77
87
You can’t perform that action at this time.
0 commit comments