mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 02:21:23 +00:00
Feature/layerfix drag drop (#225)
This commit is contained in:
1 parent
2fec64a02d
commit
c20348efa6
1 file changed
+2
@@ -230,6 +230,8 @@ export class TimeLine {
|
||||
|
||||
public getPos() {
|
||||
const raycaster = new THREE.Raycaster();
|
||||
raycaster.layers.enable(0);
|
||||
raycaster.layers.enable(1);
|
||||
if (this.mouse && this.camera) {
|
||||
raycaster.setFromCamera(this.mouse, this.camera);
|
||||
const intersects = raycaster.intersectObjects(
|
||||
|
||||
Reference in new issue
Block a user