make registerEntity public on scene and mandate passing childEntity to morph target functions

This commit is contained in:
Nick Fisher
2024-05-17 14:42:28 +08:00
parent a3e1d180d9
commit b465553f04

View File

@@ -215,10 +215,10 @@ abstract class AbstractFilamentViewer {
Future setMorphTargetWeights(FilamentEntity entity, List<double> weights); Future setMorphTargetWeights(FilamentEntity entity, List<double> weights);
/// ///
/// Gets the names of all morph targets for the mesh [meshName] under [entity]. /// Gets the names of all morph targets for the child renderable [childEntity] under [entity].
/// ///
Future<List<String>> getMorphTargetNames( Future<List<String>> getMorphTargetNames(
FilamentEntity entity, String meshName); FilamentEntity entity, FilamentEntity childEntity);
Future<List<String>> getAnimationNames(FilamentEntity entity); Future<List<String>> getAnimationNames(FilamentEntity entity);
@@ -643,6 +643,11 @@ abstract class Scene {
/// Attach the gizmo to the specified entity. /// Attach the gizmo to the specified entity.
/// ///
void select(FilamentEntity entity); void select(FilamentEntity entity);
///
///
///
void registerEntity(FilamentEntity entity);
} }
abstract class AbstractGizmo { abstract class AbstractGizmo {