Compare commits

...

2 Commits

Author SHA1 Message Date
AlexandreSi
329340cb47 Use correct reference to layer 2023-05-19 09:57:11 +02:00
AlexandreSi
1ab96b3d8e Remove forgotten ref 2023-05-18 17:30:10 +02:00
2 changed files with 2 additions and 3 deletions

View File

@@ -284,7 +284,6 @@ const InstancePropertiesEditorContainer = React.forwardRef<
Props,
InstancePropertiesEditorInterface
>((props, ref) => {
const editorRef = React.useRef<?InstancePropertiesEditorInterface>(null);
const forceUpdate = useForceUpdate();
React.useImperativeHandle(ref, () => ({
forceUpdate,
@@ -299,7 +298,7 @@ const InstancePropertiesEditorContainer = React.forwardRef<
</Trans>
</EmptyMessage>
) : (
<InstancePropertiesEditor {...props} ref={editorRef} />
<InstancePropertiesEditor {...props} />
)}
</Background>
);

View File

@@ -163,7 +163,7 @@ export default class LayerRenderer {
if (pixiObject) {
pixiObject.visible = isVisible;
pixiObject.interactive = !(
layer.isLocked() ||
this.layer.isLocked() ||
(instance.isLocked() && instance.isSealed())
);
}