fix(Editor): 修复内置灯光和相机无法添加至场景的bug
This commit is contained in:
parent
1f810ef5e2
commit
d0eb574f62
@ -42,7 +42,8 @@ const filteredList = computed(() => {
|
||||
|
||||
//双击添加至场景
|
||||
function addToScene(key) {
|
||||
const obj = Astral3D[key];
|
||||
const obj = Astral3D[key]();
|
||||
|
||||
Astral3D.App.execute(new Astral3D.AddObjectCommand(obj));
|
||||
}
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ const filteredList = computed(() => {
|
||||
|
||||
//双击添加至场景
|
||||
function addToScene(key) {
|
||||
const obj = Astral3D[key];
|
||||
const obj = Astral3D[key]();
|
||||
|
||||
Astral3D.App.execute(new Astral3D.AddObjectCommand(obj));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user