We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 057465b commit bb85094Copy full SHA for bb85094
src/editor/editor.ts
@@ -382,7 +382,8 @@ export class Editor {
382
public getMechanism(mechanismInRobot: commonStorage.MechanismInRobot): commonStorage.Mechanism | null {
383
if (this.currentProject) {
384
for (const mechanism of this.currentProject.mechanisms) {
385
- if (mechanism.moduleName + '.' + mechanism.className === mechanismInRobot.className) {
+ const fullClassName = commonStorage.pascalCaseToSnakeCase(mechanism.className) + '.' + mechanism.className;
386
+ if (fullClassName === mechanismInRobot.className) {
387
return mechanism;
388
}
389
0 commit comments