We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14e38e commit d977143Copy full SHA for d977143
src/index.ts
@@ -102,6 +102,15 @@ globalThis.AnimatedJava = {
102
exportProject,
103
openBlueprintLoadingDialog,
104
openInstallPopup,
105
+ removeCubesAssociatedWithTexture(texture: Texture) {
106
+ const cubes = Cube.all.filter(cube =>
107
+ Object.values(cube.faces).some(face => face.texture === texture.uuid)
108
+ )
109
+ Undo.initEdit({ elements: cubes, outliner: true, textures: [texture] })
110
+ cubes.forEach(cube => cube.remove())
111
+ texture.remove()
112
+ Undo.finishEdit('Remove Cubes Associated With Texture')
113
+ },
114
},
115
}
116
0 commit comments