From 62e01c7a33399861876b3bed5abd9172d8bc22c5 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Sat, 27 Apr 2019 12:21:45 -0700 Subject: [PATCH] Update PhysicsServerCommandProcessor.cpp --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index 05a853fe2..1ed19e316 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -7353,7 +7353,7 @@ bool PhysicsServerCommandProcessor::processLoadSoftBodyCommand(const struct Shar bool foundFile = UrdfFindMeshFile(fileIO,pathPrefix, relativeFileName, error_message_prefix, &out_found_filename, &out_type); std::vector shapes; std::string err = tinyobj::LoadObj(shapes, out_found_filename.c_str(),"",fileIO); - if (shapes.size() > 0) + if (!shapes.empty()) { const tinyobj::shape_t& shape = shapes[0]; btAlignedObjectArray vertices;