Compare commits
No commits in common. "select-block" and "1.2.3" have entirely different histories.
select-blo
...
1.2.3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cadview",
|
||||
"version": "1.2.5",
|
||||
"version": "1.2.3",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"private": true,
|
||||
|
@ -10,7 +10,7 @@ export class ViewerSettings
|
||||
{
|
||||
boardMaterial: MeshBasicMaterial = boardMaterial;
|
||||
selectMaterial: MeshBasicMaterial = selectMaterial;
|
||||
selectByPointCallback: (meshId: number) => void = () => { };
|
||||
|
||||
}
|
||||
|
||||
export class Viewer
|
||||
@ -211,10 +211,6 @@ export class Viewer
|
||||
{
|
||||
this.oldMesh = mesh;
|
||||
mesh.material = this._Settings.selectMaterial;
|
||||
if (this._Settings.selectByPointCallback)
|
||||
{
|
||||
this._Settings.selectByPointCallback(mesh.id);
|
||||
}
|
||||
}
|
||||
this.m_bNeedUpdate = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user