Skip to content

Retain attributes ordering in the ndr registry#1552

Merged
sebastienblor merged 3 commits intoAutodesk:masterfrom
sebastienblor:ARNOLD-13631
Jun 6, 2023
Merged

Retain attributes ordering in the ndr registry#1552
sebastienblor merged 3 commits intoAutodesk:masterfrom
sebastienblor:ARNOLD-13631

Conversation

@sebastienblor
Copy link
Copy Markdown
Collaborator

Changes proposed in this pull request
The ndr registry was returning attributes in the alphabetic order, instead of keeping the attributes order defined in the arnold node entries.
This PR stores this ordering as a metadata for each node type, and then declares attributes in this same order.

We also skip attribute "name" which exists in all arnold nodes, but that doesn't make sense in USD where the name is not an attribute.

@sebastienblor sebastienblor self-assigned this Jun 6, 2023
cpichard
cpichard previously approved these changes Jun 6, 2023
Copy link
Copy Markdown
Collaborator

@cpichard cpichard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, a line in the changelog is missing though

@sebastienblor sebastienblor merged commit e07ebd5 into Autodesk:master Jun 6, 2023
@sebastienblor sebastienblor deleted the ARNOLD-13631 branch June 6, 2023 14:53
sebastienblor added a commit that referenced this pull request Jun 13, 2023
* Update changelog for branch fix 7.2.2 (#1558)

* Updating testsuite in fix-7.2.2 (#1560)

* Update test references (#1539)

(cherry picked from commit d13ebc7)

* Add test for scene exported from maxUSD (#1537)

(cherry picked from commit 042608f)

* Bump threshold for test_0226 (#1540)

(cherry picked from commit 37e1628)

* Support UsdPrimvarReader_float2 correctly under a procedural (#1551) (#1561)

* Retain attributes ordering in the ndr registry (#1552) (#1562)

* read the arnold:driver value when it is a string (#1549) (#1564)

Co-authored-by: cpichard <cpichard@users.noreply.github.com>

* Fix changelog

---------

Co-authored-by: cpichard <cpichard@users.noreply.github.com>
sebastienblor added a commit that referenced this pull request Jun 21, 2023
* Update changelog for branch fix 7.2.2 (#1558)

* Updating testsuite in fix-7.2.2 (#1560)

* Update test references (#1539)

(cherry picked from commit d13ebc7)

* Add test for scene exported from maxUSD (#1537)

(cherry picked from commit 042608f)

* Bump threshold for test_0226 (#1540)

(cherry picked from commit 37e1628)

* Support UsdPrimvarReader_float2 correctly under a procedural (#1551) (#1561)

* Retain attributes ordering in the ndr registry (#1552) (#1562)

* read the arnold:driver value when it is a string (#1549) (#1564)

Co-authored-by: cpichard <cpichard@users.noreply.github.com>

* Fix metallic attribute in UsdPreviewSurface in the render delegate  (#1568)

* Fix metallic attribute in UsdPreviewSurface in the render delegate #1567

* Add changelog

* Fix relative paths on arnold nodes  (#1559) (#1569)

* Fix relative paths on arnold nodes #1546

* Add changelo

(cherry picked from commit 32de9a1)

* Moved the cached render log variables out of RenderParam, now they just have a global scope (#1573)

Co-authored-by: Tom Minor <minort@ADSK.ads.autodesk.com>

---------

Co-authored-by: cpichard <cpichard@users.noreply.github.com>
Co-authored-by: Tom Minor <5022079+TomMinor@users.noreply.github.com>
Co-authored-by: Tom Minor <minort@ADSK.ads.autodesk.com>
sebastienblor added a commit that referenced this pull request Jul 4, 2023
* Update changelog for branch fix 7.2.2 (#1558)

* Updating testsuite in fix-7.2.2 (#1560)

* Update test references (#1539)

(cherry picked from commit d13ebc7)

* Add test for scene exported from maxUSD (#1537)

(cherry picked from commit 042608f)

* Bump threshold for test_0226 (#1540)

(cherry picked from commit 37e1628)

* Support UsdPrimvarReader_float2 correctly under a procedural (#1551) (#1561)

* Retain attributes ordering in the ndr registry (#1552) (#1562)

* read the arnold:driver value when it is a string (#1549) (#1564)

Co-authored-by: cpichard <cpichard@users.noreply.github.com>

* Fix metallic attribute in UsdPreviewSurface in the render delegate  (#1568)

* Fix metallic attribute in UsdPreviewSurface in the render delegate #1567

* Add changelog

* Fix relative paths on arnold nodes  (#1559) (#1569)

* Fix relative paths on arnold nodes #1546

* Add changelo

(cherry picked from commit 32de9a1)

* Moved the cached render log variables out of RenderParam, now they just have a global scope (#1573)

Co-authored-by: Tom Minor <minort@ADSK.ads.autodesk.com>

* Update changelog for 7.2.2.1 (#1581)

---------

Co-authored-by: cpichard <cpichard@users.noreply.github.com>
Co-authored-by: Tom Minor <5022079+TomMinor@users.noreply.github.com>
Co-authored-by: Tom Minor <minort@ADSK.ads.autodesk.com>
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.

2 participants