Skip to content

Commit f635e79

Browse files
committed
Fixed python generator for FunctionKind.INSTANCE_COMPONENT in a mechanism.
1 parent e3f8479 commit f635e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/mrc_call_python_function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,9 +679,9 @@ export const pythonFromBlock = function(
679679
// Generate the correct code depending on the module type.
680680
switch (generator.getModuleType()) {
681681
case commonStorage.MODULE_TYPE_PROJECT:
682+
case commonStorage.MODULE_TYPE_MECHANISM:
682683
code = 'self.';
683684
break;
684-
case commonStorage.MODULE_TYPE_MECHANISM:
685685
case commonStorage.MODULE_TYPE_OPMODE:
686686
default:
687687
code = 'self.robot.';

0 commit comments

Comments
 (0)