NME generates deprecated code for some blocs

Hello, I have a problem with a node material when using the code generated by “Generate Code”.

I suspect the issue is caused by the ColorConverterBlock. Here’s what’s happening:

Cannot read properties of undefined (reading 'connectTo')

Pretty sure this is a bug, unless I am not using the nodes correctly.

Thank you.

Hello :slight_smile:

Yes, it seems to be :
Having a look at the DOC :
ColorConverter.hsl does not exist, but ColorConverter.hslOut does.

Also, the doc suggests that ColorMergerBlock.rgb is deprecated and rgbIn or rgbOut should be used instead.

Fixed PG :

2 Likes

Amazing, thank you!

I won’t mark is a solution yet as clearly the node material editor needs updating.

Yep. I edited the title and moved to Bugs

1 Like

Thanks for reporting, here’s the fix:

2 Likes