fix bad copy-paste bug

This commit is contained in:
Nick Fisher
2024-03-04 21:43:35 +08:00
parent f80d92bf5b
commit e2a56f4136

View File

@@ -1424,8 +1424,10 @@ namespace flutter_filament
const auto *instance = getInstanceByEntityId(entityId);
if(!instance) {
auto asset = getAssetByEntityId(entityId);
if(!asset) {
if(asset) {
instance = asset->getInstance();
} else {
return nullptr;
}
}
return instance->getAsset()->getCameraEntities();
@@ -1436,8 +1438,10 @@ namespace flutter_filament
const auto *instance = getInstanceByEntityId(entityId);
if(!instance) {
auto asset = getAssetByEntityId(entityId);
if(!asset) {
if(asset) {
instance = asset->getInstance();
} else {
return -1;
}
}
return instance->getAsset()->getCameraEntityCount();
@@ -1448,8 +1452,10 @@ namespace flutter_filament
const auto *instance = getInstanceByEntityId(entityId);
if(!instance) {
auto asset = getAssetByEntityId(entityId);
if(!asset) {
if(asset) {
instance = asset->getInstance();
} else {
return nullptr;
}
}
return instance->getAsset()->getLightEntities();
@@ -1460,8 +1466,10 @@ namespace flutter_filament
const auto *instance = getInstanceByEntityId(entityId);
if(!instance) {
auto asset = getAssetByEntityId(entityId);
if(!asset) {
if(asset) {
instance = asset->getInstance();
} else {
return -1;
}
}
return instance->getAsset()->getLightEntityCount();
@@ -1483,7 +1491,7 @@ namespace flutter_filament
const auto *instance = getInstanceByEntityId(entityId);
if(!instance) {
auto asset = getAssetByEntityId(entityId);
if(!asset) {
if(asset) {
instance = asset->getInstance();
} else {
return 0;
@@ -1507,7 +1515,7 @@ namespace flutter_filament
const auto *instance = getInstanceByEntityId(entityId);
if(!instance) {
auto asset = getAssetByEntityId(entityId);
if(!asset) {
if(asset) {
instance = asset->getInstance();
} else {
return nullptr;