| 4259 | } |
| 4260 | |
| 4261 | inline void setMeshVerticesPython(Scene& scene, MeshID meshID, const pybind11::dict& dict) |
| 4262 | { |
| 4263 | std::map<std::string, ref<Buffer>> buffers; |
| 4264 | for (auto item : dict) |
| 4265 | { |
| 4266 | std::string name = item.first.cast<std::string>(); |
| 4267 | ref<Buffer> buffer = item.second.cast<ref<Buffer>>(); |
| 4268 | buffers[name] = buffer; |
| 4269 | } |
| 4270 | scene.setMeshVertices(meshID, buffers); |
| 4271 | #if FALCOR_HAS_CUDA |
| 4272 | scene.getDevice()->getRenderContext()->waitForFalcor(); |
| 4273 | #endif |
| 4274 | } |
| 4275 | |
| 4276 | FALCOR_SCRIPT_BINDING(Scene) |
| 4277 | { |
nothing calls this directly
no test coverage detected