Пример #1
0
        // Called when the mouse exits hovering an editable object.
        public override void OnBrushExit(z_EditableObject target)
        {
            base.OnBrushExit(target);

            if (target.editMesh != null)
            {
                target.editMesh.colors = colors_cache;
                target.ApplyMeshAttributes(z_MeshChannel.Color);
            }

            likelySupportsVertexColors = true;
        }
Пример #2
0
        // Called when the mouse exits hovering an editable object.
        public override void OnBrushExit(z_EditableObject target)
        {
            base.OnBrushExit(target);

            if (splat_cache != null)
            {
                splat_cache.Apply(target.editMesh);
                target.ApplyMeshAttributes();
                target.graphicsMesh.UploadMeshData(false);
            }

            likelySupportsTextureBlending = true;
        }