Fix: Build error after simulation header cleanup

Making the geometry state's geometry public to remove
the accessors didn't work without the constructor.
This commit is contained in:
Hans Goudey
2023-05-08 17:21:15 -04:00
parent 2f349ce884
commit ce96abd33a
2 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ class SimulationStateItem {
class GeometrySimulationStateItem : public SimulationStateItem {
public:
GeometrySimulationStateItem(GeometrySet geometry);
GeometrySet geometry;
};

View File

@@ -15,6 +15,11 @@
namespace blender::bke::sim {
GeometrySimulationStateItem::GeometrySimulationStateItem(GeometrySet geometry)
: geometry(std::move(geometry))
{
}
PrimitiveSimulationStateItem::PrimitiveSimulationStateItem(const CPPType &type, const void *value)
: type_(type)
{