Add toggle for enabling/disabling grid snap in RenderContainerComponent and update snapping logic.
This commit is contained in:
+9
@@ -103,6 +103,15 @@ export class RenderContainerComponent implements AfterViewInit, OnDestroy {
|
||||
this.intersectionPlaneService.setGridDensity(d);
|
||||
}
|
||||
|
||||
// Grid snap proxies
|
||||
public get gridSnapEnabled(): boolean {
|
||||
return this.intersectionPlaneService.getGridSnapEnabled();
|
||||
}
|
||||
|
||||
public set gridSnapEnabled(v: boolean) {
|
||||
this.intersectionPlaneService.setGridSnapEnabled(v);
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle the plane locked state
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user