Ejemplo n.º 1
0
        public void CopyFrom(BrushSettings other)
        {
            brushRadius              = other.brushRadius;
            brushSpacing             = other.brushSpacing;
            brushOverlapCheckMode    = other.brushOverlapCheckMode;
            brushOverlapDistance     = other.brushOverlapDistance;
            brushOverlapCheckObjects = other.brushOverlapCheckObjects;
            brushOverlapCheckLayers  = other.brushOverlapCheckLayers;

            surfaceOffset = other.surfaceOffset;

            orientationTransformMode = other.orientationTransformMode;
            orientationMode          = other.orientationMode;
            alongBrushStroke         = other.alongBrushStroke;
            rotation = other.rotation;
            randomizeOrientationX = other.randomizeOrientationX;
            randomizeOrientationY = other.randomizeOrientationY;
            randomizeOrientationZ = other.randomizeOrientationZ;

            scaleTransformMode = other.scaleTransformMode;
            scaleMode          = other.scaleMode;
            scaleUniformMin    = other.scaleUniformMin;
            scaleUniformMax    = other.scaleUniformMax;
            scalePerAxisMin    = other.scalePerAxisMin;
            scalePerAxisMax    = other.scalePerAxisMax;

            pinFixedRotation      = other.pinFixedRotation;
            pinFixedRotationValue = other.pinFixedRotationValue;
            pinFixedScale         = other.pinFixedScale;
            pinFixedScaleValue    = other.pinFixedScaleValue;

            placeScale       = other.placeScale;
            placeEulerAngles = other.placeEulerAngles;

            multibrushEnabled           = other.multibrushEnabled;
            multibrushPaintSelectedSlot = other.multibrushPaintSelectedSlot;
            multibrushMode            = other.multibrushMode;
            multibrushPattern         = other.multibrushPattern;
            multibrushPatternContinue = other.multibrushPatternContinue;

            for (int i = 0; i < kNumMultibrushSlots; i++)
            {
                multibrushSlots[i] = other.multibrushSlots[i];
            }

            slopeEnabled      = other.slopeEnabled;
            slopeAngleMin     = other.slopeAngleMin;
            slopeAngleMax     = other.slopeAngleMax;
            slopeVector       = other.slopeVector;
            slopeVectorCustom = other.slopeVectorCustom;
            slopeVectorFlip   = other.slopeVectorFlip;

            gridEnabled = other.gridEnabled;
            gridOrigin  = other.gridOrigin;
            gridStep    = other.gridStep;
            gridPlane   = other.gridPlane;
            gridNormal  = other.gridNormal;
            gridAngle   = other.gridAngle;
        }
Ejemplo n.º 2
0
 public void ResetBrush()
 {
     brushRadius              = 1.0f;
     brushSpacing             = 0.5f;
     brushOverlapCheckMode    = OverlapCheckMode.None;
     brushOverlapDistance     = 0.5f;
     brushOverlapCheckObjects = OverlapCheckObjects.SamePlaceLayer;
     brushOverlapCheckLayers  = 0;
 }
Ejemplo n.º 3
0
        public void CopyFrom(BrushSettings other)
        {
            brushRadius              = other.brushRadius;
            brushSpacing             = other.brushSpacing;
            brushOverallScale        = other.brushOverallScale;
            brushOverlapCheck        = other.brushOverlapCheck;
            brushOverlapCheckMode    = other.brushOverlapCheckMode;
            brushOverlapDistance     = other.brushOverlapDistance;
            brushOverlapCheckObjects = other.brushOverlapCheckObjects;
            brushOverlapCheckLayers  = other.brushOverlapCheckLayers;
            maxAlpha = other.maxAlpha;
            minAlpha = other.minAlpha;

            ppOrientationMode            = other.ppOrientationMode;
            ppFlipOrientation            = other.ppFlipOrientation;
            ppFixedRotation              = other.ppFixedRotation;
            ppFixedRotationValue         = other.ppFixedRotationValue;
            ppFixedRotationTransformMode = other.ppFixedRotationTransformMode;
            ppFixedScale              = other.ppFixedScale;
            ppFixedScaleValue         = other.ppFixedScaleValue;
            ppFixedScaleTransformMode = other.ppFixedScaleTransformMode;

            positionOffset = other.positionOffset;

            orientationTransformMode = other.orientationTransformMode;
            orientationMode          = other.orientationMode;
            flipOrientation          = other.flipOrientation;
            rotation = other.rotation;
            randomizeOrientationX = other.randomizeOrientationX;
            randomizeOrientationY = other.randomizeOrientationY;
            randomizeOrientationZ = other.randomizeOrientationZ;

            scaleTransformMode = other.scaleTransformMode;
            scaleMode          = other.scaleMode;
            scaleUniformMin    = other.scaleUniformMin;
            scaleUniformMax    = other.scaleUniformMax;
            scalePerAxisMin    = other.scalePerAxisMin;
            scalePerAxisMax    = other.scalePerAxisMax;
            scaleAux           = other.scaleAux;

            multibrushEnabled           = other.multibrushEnabled;
            multibrushPaintSelectedSlot = other.multibrushPaintSelectedSlot;
            multibrushMode            = other.multibrushMode;
            multibrushPattern         = other.multibrushPattern;
            multibrushPatternContinue = other.multibrushPatternContinue;

            for (int i = 0; i < kNumMultibrushSlots; i++)
            {
                multibrushSlots[i] = other.multibrushSlots[i];
            }

            advancedSettingsEnabled = other.advancedSettingsEnabled;

            slopeEnabled      = other.slopeEnabled;
            slopeAngleMin     = other.slopeAngleMin;
            slopeAngleMax     = other.slopeAngleMax;
            slopeVector       = other.slopeVector;
            slopeVectorCustom = other.slopeVectorCustom;
            slopeVectorFlip   = other.slopeVectorFlip;

            gridEnabled = other.gridEnabled;
            gridOrigin  = other.gridOrigin;
            gridStep    = other.gridStep;
            gridPlane   = other.gridPlane;
            gridNormal  = other.gridNormal;
            gridAngle   = other.gridAngle;
        }