Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSpy3 committed Jul 8, 2024
1 parent 13234e1 commit 698a111
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/webots/vrml/WbFieldValueRestriction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class WbFieldValueRestriction : public WbVariant {

const bool allowsSubtypes() const { return mAllowsSubtypes; }

bool isVariantAccepted(const WbVariant &node) const;
bool isVariantAccepted(const WbVariant &variant) const;
bool isNodeAccepted(const QString &nodeModelName, const WbNodeModel *nodeModel, const QStringList &protoParentList) const;
bool isNodeAccepted(const WbNode *node) const;
bool isBaseNodeTypeAccepted(const WbNodeModel *actualType) const;
Expand Down
16 changes: 13 additions & 3 deletions tests/parser/protos/ProtoRestrictedFieldValues.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ PROTO ProtoRestrictedFieldValues
field SFRotation{0 1 0 0, 0 0 1 0, 0 1 0 1.5708} rotation 0 0 1 0
field SFVec3f{0 0 0} translation 0 0 0
field MFNode{Solid{}+, PoseProto{}+} extensionSlot []
unconnectedField MFNode{PoseProto{}} extensionSlot2 []
unconnectedField MFNode{Pose{}} extensionSlot3 []
field MFNode{PoseProto{}} extensionSlot2 []
field MFNode{Pose{}} extensionSlot3 []
]
{
Solid {
rotation IS rotation
translation IS translation
children IS extensionSlot
children [
Group {
children IS extensionSlot
}
Group {
children IS extensionSlot2
}
Group {
children IS extensionSlot3
}
]
}
}

0 comments on commit 698a111

Please sign in to comment.