The active tilemap layer can be renamed from the painting section, and a Show setting fades or hides the other layers in the scene view while the tilemap is selected (#138)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bfbcbe604c
commit
f53279d065
10 files changed
+248
-13
No files matched your search
@@ -147,8 +147,10 @@ export class RenameTilemapLayerCommand implements Command {
|
||||
|
||||
execute(project: Project): void {
|
||||
const layer = requireTilemapLayer(project, this.assetId, this.layerId);
|
||||
const name = this.name.trim();
|
||||
if (!name) throw new CommandError('A layer needs a name');
|
||||
this.previous = layer.name;
|
||||
layer.name = this.name;
|
||||
layer.name = name;
|
||||
}
|
||||
|
||||
undo(project: Project): void {
|
||||
|
||||
Reference in new issue
Block a user