mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
expression bug fixes (#336)
Co-authored-by: Victor <victor@storyteller.ai>
This commit is contained in:
1 parent
3c7630bbc9
commit
ec9d0525ba
1 file changed
+2
-1
@@ -143,7 +143,8 @@ export const ControlPanelSceneObject = () => {
|
||||
useEffect(() => {
|
||||
const isCurrentObj =
|
||||
(editorEngine?.selected?.uuid || "") === initializedObj ||
|
||||
appUiState.controlPanel.currentSceneObject.object_uuid === initializedObj;
|
||||
(appUiState?.controlPanel?.currentSceneObject?.object_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