fix bad copy-paste bug
This commit is contained in:
@@ -1424,9 +1424,11 @@ namespace flutter_filament
|
|||||||
const auto *instance = getInstanceByEntityId(entityId);
|
const auto *instance = getInstanceByEntityId(entityId);
|
||||||
if(!instance) {
|
if(!instance) {
|
||||||
auto asset = getAssetByEntityId(entityId);
|
auto asset = getAssetByEntityId(entityId);
|
||||||
if(!asset) {
|
if(asset) {
|
||||||
instance = asset->getInstance();
|
instance = asset->getInstance();
|
||||||
}
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return instance->getAsset()->getCameraEntities();
|
return instance->getAsset()->getCameraEntities();
|
||||||
}
|
}
|
||||||
@@ -1436,9 +1438,11 @@ namespace flutter_filament
|
|||||||
const auto *instance = getInstanceByEntityId(entityId);
|
const auto *instance = getInstanceByEntityId(entityId);
|
||||||
if(!instance) {
|
if(!instance) {
|
||||||
auto asset = getAssetByEntityId(entityId);
|
auto asset = getAssetByEntityId(entityId);
|
||||||
if(!asset) {
|
if(asset) {
|
||||||
instance = asset->getInstance();
|
instance = asset->getInstance();
|
||||||
}
|
} else {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return instance->getAsset()->getCameraEntityCount();
|
return instance->getAsset()->getCameraEntityCount();
|
||||||
}
|
}
|
||||||
@@ -1448,9 +1452,11 @@ namespace flutter_filament
|
|||||||
const auto *instance = getInstanceByEntityId(entityId);
|
const auto *instance = getInstanceByEntityId(entityId);
|
||||||
if(!instance) {
|
if(!instance) {
|
||||||
auto asset = getAssetByEntityId(entityId);
|
auto asset = getAssetByEntityId(entityId);
|
||||||
if(!asset) {
|
if(asset) {
|
||||||
instance = asset->getInstance();
|
instance = asset->getInstance();
|
||||||
}
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return instance->getAsset()->getLightEntities();
|
return instance->getAsset()->getLightEntities();
|
||||||
}
|
}
|
||||||
@@ -1460,9 +1466,11 @@ namespace flutter_filament
|
|||||||
const auto *instance = getInstanceByEntityId(entityId);
|
const auto *instance = getInstanceByEntityId(entityId);
|
||||||
if(!instance) {
|
if(!instance) {
|
||||||
auto asset = getAssetByEntityId(entityId);
|
auto asset = getAssetByEntityId(entityId);
|
||||||
if(!asset) {
|
if(asset) {
|
||||||
instance = asset->getInstance();
|
instance = asset->getInstance();
|
||||||
}
|
} else {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return instance->getAsset()->getLightEntityCount();
|
return instance->getAsset()->getLightEntityCount();
|
||||||
}
|
}
|
||||||
@@ -1483,7 +1491,7 @@ namespace flutter_filament
|
|||||||
const auto *instance = getInstanceByEntityId(entityId);
|
const auto *instance = getInstanceByEntityId(entityId);
|
||||||
if(!instance) {
|
if(!instance) {
|
||||||
auto asset = getAssetByEntityId(entityId);
|
auto asset = getAssetByEntityId(entityId);
|
||||||
if(!asset) {
|
if(asset) {
|
||||||
instance = asset->getInstance();
|
instance = asset->getInstance();
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1507,7 +1515,7 @@ namespace flutter_filament
|
|||||||
const auto *instance = getInstanceByEntityId(entityId);
|
const auto *instance = getInstanceByEntityId(entityId);
|
||||||
if(!instance) {
|
if(!instance) {
|
||||||
auto asset = getAssetByEntityId(entityId);
|
auto asset = getAssetByEntityId(entityId);
|
||||||
if(!asset) {
|
if(asset) {
|
||||||
instance = asset->getInstance();
|
instance = asset->getInstance();
|
||||||
} else {
|
} else {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user