Hide transform controls when locked

This commit is contained in:
Mitchell McCaffrey 2021-08-04 07:23:40 +10:00
parent 879a23f81a
commit 07b9f8f621

View File

@ -321,7 +321,7 @@ function Token({
) : null} ) : null}
</animated.Group> </animated.Group>
<Transformer <Transformer
active={selected || isTransforming} active={(!tokenState.locked && selected) || isTransforming}
nodeRef={tokenRef} nodeRef={tokenRef}
onTransformEnd={handleTransformEnd} onTransformEnd={handleTransformEnd}
onTransformStart={handleTransformStart} onTransformStart={handleTransformStart}