diff --git a/interface/src/ui/MetavoxelEditor.cpp b/interface/src/ui/MetavoxelEditor.cpp index 1873f92df8..0b1ebabe71 100644 --- a/interface/src/ui/MetavoxelEditor.cpp +++ b/interface/src/ui/MetavoxelEditor.cpp @@ -1101,6 +1101,10 @@ HeightfieldBrushTool::HeightfieldBrushTool(MetavoxelEditor* editor, const QStrin _radius->setValue(1.0); } +bool HeightfieldBrushTool::appliesTo(const AttributePointer& attribute) const { + return attribute->inherits("HeightfieldAttribute"); +} + void HeightfieldBrushTool::render() { if (Application::getInstance()->isMouseHidden()) { return; diff --git a/interface/src/ui/MetavoxelEditor.h b/interface/src/ui/MetavoxelEditor.h index 6413c51e1c..63f71c6ca4 100644 --- a/interface/src/ui/MetavoxelEditor.h +++ b/interface/src/ui/MetavoxelEditor.h @@ -312,6 +312,8 @@ public: HeightfieldBrushTool(MetavoxelEditor* editor, const QString& name); + virtual bool appliesTo(const AttributePointer& attribute) const; + virtual void render(); virtual bool eventFilter(QObject* watched, QEvent* event);