CGRU / cgru

CGRU - AFANASY
http://cgru.info/
GNU Lesser General Public License v3.0
278 stars 111 forks source link

Error! Not have method reverse for list #560

Closed alexcubor closed 2 months ago

alexcubor commented 1 year ago

https://github.com/CGRU/cgru/blob/b75c1cb50dacbb9e0fbd20fb18c9b9ff0b2ce9f4/plugins/maya/afanasy/maya_ui_proc.py#L358

I suggest changing the line to:

labels = list(renderLayers.values())
list(reversed(labels))
eoyilmaz commented 1 year ago

Would you like to create a pull request for this.

alexcubor commented 1 year ago

Would you like to create a pull request for this.

Yes. This is my fix

timurhai commented 1 year ago

Python list has method reverse() Maybe the error is somewhere else?

timurhai commented 1 year ago

Maybe labes is not a list just after this: labels = renderLayers.values() Maybe there should be: labels = list(renderLayers.values())