Skip to content

[Floor plan importer] Load first file in the imageFiles array#1

Open
danilo-p wants to merge 1 commit intoCoppeliaRobotics:masterfrom
danilo-p:patch-1
Open

[Floor plan importer] Load first file in the imageFiles array#1
danilo-p wants to merge 1 commit intoCoppeliaRobotics:masterfrom
danilo-p:patch-1

Conversation

@danilo-p
Copy link
Copy Markdown

The direct use of the array causes the following error, breaking the Floor plan importer feature.

[Importers >> Floor plan importer...@addOnScript:error] 121: in sim.loadImage: argument 2 is not a string/buffer.
stack traceback:
    [C]: in function 'sim-1.loadImage'
    [string "Importers >> Floor plan importer...@addOnScri..."]:121: in function 'go'

[CoppeliaSim:error] External call to simCallScriptFunction failed ('go'): error in script function.

Accessing the first position of the array passes the right file path for the sim.loadImage method, and the feature works as normal.

The direct use of the array causes the following error, breaking the Floor plan importer feature.

```
[Importers >> Floor plan importer...@addOnScript:error] 121: in sim.loadImage: argument 2 is not a string/buffer.
stack traceback:
    [C]: in function 'sim-1.loadImage'
    [string "Importers >> Floor plan importer...@addOnScri..."]:121: in function 'go'

[CoppeliaSim:error] External call to simCallScriptFunction failed ('go'): error in script function.
```

Accessing the first position of the array passes the right file path for the sim.loadImage method, and the feature works as normal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant