import { Action } from "../../../src/core/process/undo/Action.js";

export class ActionUpdateTexture extends Action {
    /**
     *
     * @param {THREE.Texture} texture
     */
    constructor(texture) {
        super();

        this.__texture = texture;
    }

    async apply(context) {
        this.__texture.needsUpdate = true;
    }

    async revert(context) {
        this.__texture.needsUpdate = true;
    }
}
