diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-20 00:26:16 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-20 17:53:55 +0000 |
commit | b5db39e7de50cff669920ab1f279df223d257a51 (patch) | |
tree | 1fb620c7ad3d1df8bf31e7fb36a6373ff8594e69 /assetFactory/faceController.h | |
parent | Fix left/right swap of cuboid face names (diff) | |
download | ilt-b5db39e7de50cff669920ab1f279df223d257a51.tar.bz2 ilt-b5db39e7de50cff669920ab1f279df223d257a51.tar.xz ilt-b5db39e7de50cff669920ab1f279df223d257a51.zip |
Support applying a single face controller to multiple faces
Diffstat (limited to 'assetFactory/faceController.h')
-rw-r--r-- | assetFactory/faceController.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/assetFactory/faceController.h b/assetFactory/faceController.h index 10a226a..890aafa 100644 --- a/assetFactory/faceController.h +++ b/assetFactory/faceController.h @@ -12,7 +12,7 @@ class FaceController : public Mutation, public Style, public Persistence::Persis public: using FaceControllers = std::map<std::string, std::unique_ptr<FaceController>>; - void apply(ModelFactoryMesh & mesh, const Style::StyleStack & parents, const std::string & name, + void apply(ModelFactoryMesh & mesh, const Style::StyleStack & parents, const std::string & names, Shape::CreatedFaces & faces) const; std::string id; @@ -28,4 +28,7 @@ private: { return {}; }; + + void applySingle(ModelFactoryMesh & mesh, const Style::StyleStack & parents, const std::string & name, + Shape::CreatedFaces & faces) const; }; |