File tree Expand file tree Collapse file tree
src/state-builder/compiler/ast Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @molstar/molstar-components" ,
3- "version" : " 0.6.0-experimental.25 " ,
3+ "version" : " 0.6.0-experimental.26 " ,
44 "license" : " MIT" ,
55 "exports" : {
66 "." : " ./src/mod.ts" ,
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ export class ASTFactory {
112112 for ( const child of children ) {
113113 // TODO: animation is a separate MVSAnimationSchema tree in the real molstar API (a sibling to the
114114 // scene tree, not a child of root). The compiler currently treats it as a child of root as a
115- // workaround — skip schema grammar validation for it until that is properly restructured.
116- if ( isValidNodeStructure ( child ) && child . kind !== 'animation' && isValidMVSKind ( child . kind ) && ! canHaveChild ( kind , child . kind ) ) {
115+ // workaround — skip schema grammar validation for the entire animation subtree until restructured.
116+ if ( isValidNodeStructure ( child ) && ( kind as string ) !== 'animation' && child . kind !== 'animation' && isValidMVSKind ( child . kind ) && ! canHaveChild ( kind , child . kind ) ) {
117117 throw new ASTError (
118118 `Invalid parent-child relationship: "${ child . kind } " cannot be a child of "${ kind } "` ,
119119 node ,
You can’t perform that action at this time.
0 commit comments