pass through keepData flag when creating geometry via viewer
This commit is contained in:
@@ -715,13 +715,9 @@ class ThermionViewerFFI extends ThermionViewer {
|
|||||||
bool keepData = false,
|
bool keepData = false,
|
||||||
bool addToScene = true,
|
bool addToScene = true,
|
||||||
}) async {
|
}) async {
|
||||||
final asset =
|
final asset = await FilamentApp.instance!.createGeometry(
|
||||||
await FilamentApp.instance!.createGeometry(
|
geometry, animationManager,
|
||||||
geometry,
|
materialInstances: materialInstances, keepData: keepData) as FFIAsset;
|
||||||
animationManager,
|
|
||||||
materialInstances: materialInstances,
|
|
||||||
)
|
|
||||||
as FFIAsset;
|
|
||||||
_assets.add(asset);
|
_assets.add(asset);
|
||||||
if (addToScene) {
|
if (addToScene) {
|
||||||
await scene.add(asset);
|
await scene.add(asset);
|
||||||
|
|||||||
Reference in New Issue
Block a user