Add toggle for enabling/disabling grid snap in RenderContainerComponent and update snapping logic.
This commit is contained in:
+5
@@ -35,6 +35,11 @@
|
||||
[matTooltip]="gridVisible ? 'Hide grid' : 'Show grid'">
|
||||
<mat-icon>{{ gridVisible ? 'grid_off' : 'grid_on' }}</mat-icon>
|
||||
</button>
|
||||
|
||||
<button mat-mini-fab color="primary" (click)="gridSnapEnabled = !gridSnapEnabled"
|
||||
[matTooltip]="gridSnapEnabled ? 'Disable grid snap' : 'Enable grid snap'">
|
||||
<mat-icon>{{ gridSnapEnabled ? 'push_pin' : 'pinch' }}</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@if (isPlaneLocked) {
|
||||
|
||||
Reference in New Issue
Block a user