private void AdjustBrushShapeSizeForMouseWheelScroll(Event e)
        {
            DecorPaintObjectPlacementBrush activeBrush = DecorPaintObjectPlacementBrushDatabase.Get().ActiveBrush;

            if (activeBrush != null)
            {
                BrushDecorPaintModeObjectPlacementSettings brushDecorPaintSettings = ObjectPlacementSettings.Get().DecorPaintObjectPlacementSettings.BrushDecorPaintModeSettings;
                int sizeAdjustAmount = (int)(-e.delta.y * brushDecorPaintSettings.ScrollWheelCircleRadiusAdjustmentSpeed);

                UndoEx.RecordForToolAction(activeBrush);
                activeBrush.Radius += sizeAdjustAmount;

                Octave3DWorldBuilder.ActiveInstance.Inspector.EditorWindow.Repaint();
                SceneView.RepaintAll();
            }
        }
Esempio n. 2
0
 public BrushDecorPaintModeObjectPlacementSettingsView(BrushDecorPaintModeObjectPlacementSettings settings)
 {
     _settings = settings;
 }