mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
removed line causing control panel loop (#338)
Co-authored-by: Victor <victor@storyteller.ai>
This commit is contained in:
1 parent
b93aba5724
commit
3dd6ff224d
1 file changed
+1
-3
@@ -142,9 +142,7 @@ export const ControlPanelSceneObject = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const isCurrentObj =
|
||||
(editorEngine?.selected?.uuid || "") === initializedObj ||
|
||||
(appUiState?.controlPanel?.currentSceneObject?.object_uuid || "") ===
|
||||
initializedObj;
|
||||
(editorEngine?.selected?.uuid || "") === initializedObj;
|
||||
// TODO this causes a subtle bug because it renders way too many times.
|
||||
if (!appUiState.controlPanel.currentSceneObject) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user