From 61981b9470476eed3ced3f791abb837087d7a30c Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Fri, 18 Apr 2014 16:00:44 -0700 Subject: [PATCH] Added getter for tree scale in js --- libraries/voxels/src/VoxelsScriptingInterface.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/voxels/src/VoxelsScriptingInterface.h b/libraries/voxels/src/VoxelsScriptingInterface.h index 71a8405be6..d5322fdc4d 100644 --- a/libraries/voxels/src/VoxelsScriptingInterface.h +++ b/libraries/voxels/src/VoxelsScriptingInterface.h @@ -36,6 +36,9 @@ public: void setUndoStack(QUndoStack* undoStack) { _undoStack = undoStack; } public slots: + + /// provide the world scale + const int getTreeScale() const { return TREE_SCALE; } /// checks the local voxel tree for a voxel at the specified location and scale /// \param x the x-coordinate of the voxel (in meter units)