コード例 #1
0
 public void ResetPrecisePlace()
 {
     ppOrientationMode            = PrecisePlaceOrientationMode.AlongSurfaceNormal;
     ppFlipOrientation            = false;
     ppFixedRotation              = false;
     ppFixedRotationValue         = new Vector3(0, 0, 0);
     ppFixedRotationTransformMode = TransformMode.Relative;
     ppFixedScale              = false;
     ppFixedScaleValue         = new Vector3(1, 1, 1);
     ppFixedScaleTransformMode = TransformMode.Relative;
 }
コード例 #2
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;
        }