2530 - FIX - vzShader Autodetect not being applied to materials

Release date: 2017-05-03 at 11:49:27

Problem:
vzShader Auto Detect not being applied to materials. Import is correclty performed, but are not applied to objects. After Auto Detect, users perform an Apply by id.

When does this happen:
Apparently hte Auto Detect function searched for transforms while Apply by Id searched for shapes. Therefore, some nodes were skipped.

Solution:
We modified the getAllTransforms/getAllShapes functions and combined both to avoid missing some node.


Files:

...\VetorLobo\vz-site-packages\vzMaya\assets\assets.py
...\VetorLobo\vz-site-packages\vzMaya\vzShader\vzMayaImportMaterial.py
...\VetorLobo\vz-site-packages\vzMaya\vzShader\vzNetwork.py
...\VetorLobo\vz-site-packages\vzMaya\vzShader\vzNetworkUtils.py
...\VetorLobo\vz-site-packages\vzMaya\vzShader\vzObjectUtils.py

1 curtida