mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: disable track movement in armor mdoe
This commit is contained in:
1 parent
b0aff726b5
commit
5d1352590a
1 file changed
+4
-1
@@ -90,7 +90,10 @@ export const TankModel = memo(() => {
|
||||
}
|
||||
|
||||
function onPointerDown(event: ThreeEvent<PointerEvent>) {
|
||||
if (isTrack) {
|
||||
if (
|
||||
isTrack &&
|
||||
tankopediaPersistentStore.getState().mode === 'model'
|
||||
) {
|
||||
position.set(event.clientX, event.clientY);
|
||||
event.stopPropagation();
|
||||
|
||||
|
||||
Reference in new issue
Block a user