Skip to content

Add syntaxForAddingRequiredPlugin function#344

Merged
fredroy merged 1 commit intosofa-framework:masterfrom
alxbilger:sceneloaderrequiredpluginsyntax
May 2, 2023
Merged

Add syntaxForAddingRequiredPlugin function#344
fredroy merged 1 commit intosofa-framework:masterfrom
alxbilger:sceneloaderrequiredpluginsyntax

Conversation

@alxbilger
Copy link
Contributor

Follows sofa-framework/sofa#3799

Allows to format the warning message such as:

[WARNING] [SceneCheckMissingRequiredPlugin] This scene is using component defined in plugins but is not importing the required plugins.  
  Your scene may not work on a sofa environment with different pre-loaded plugins.  
  To fix your scene and remove this warning you just need to cut & paste the following lines at the beginning of your scene:   
  root.addObject('RequiredPlugin', name='Sofa.Component.AnimationLoop') # Needed to use components [FreeMotionAnimationLoop]  
  root.addObject('RequiredPlugin', name='Sofa.Component.Collision.Detection.Algorithm') # Needed to use components [BVHNarrowPhase,BruteForceBroadPhase,BruteForceDetection,CollisionPipeline]  
  root.addObject('RequiredPlugin', name='Sofa.Component.Collision.Detection.Intersection') # Needed to use components [LocalMinDistance]  

@fredroy fredroy merged commit 5a73716 into sofa-framework:master May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants