Skip to content

NodeBinding, PlugBinding : Remove isInstanceOf() hacks#6956

Merged
murraystevenson merged 4 commits into
GafferHQ:mainfrom
johnhaddon:removeIsInstanceOfHacks
Jun 16, 2026
Merged

NodeBinding, PlugBinding : Remove isInstanceOf() hacks#6956
murraystevenson merged 4 commits into
GafferHQ:mainfrom
johnhaddon:removeIsInstanceOfHacks

Conversation

@johnhaddon

Copy link
Copy Markdown
Member

These optimisations are now provided universally by Cortex, in ImageEngine/cortex#1535. We have test coverage verifying this is the case already in BoxTest.testComputeNodeCastDoesntRequirePython.

We'll need a dependencies update to include the Cortex change before CI will pass.

@johnhaddon johnhaddon self-assigned this May 29, 2026
@github-project-automation github-project-automation Bot moved this to Pending Review in Work in Progress May 29, 2026
@johnhaddon johnhaddon force-pushed the removeIsInstanceOfHacks branch from 21f9c40 to 186e3af Compare June 15, 2026 15:34
@johnhaddon

Copy link
Copy Markdown
Member Author

We'll need a dependencies update to include the Cortex change before CI will pass.

Pushed a commit to update to Cortex 10.7.0.0a11, so hopefully CI goes through now.

@johnhaddon johnhaddon force-pushed the removeIsInstanceOfHacks branch 2 times, most recently from f88272e to 933a48c Compare June 15, 2026 17:10
This requires some tweaks to our handling of instancers now that IECoreUSD unconditionally loads prototypes with relative paths where possible, and doesn't use a `./` prefix any more.
These optimisations are now provided universally by Cortex, in ImageEngine/cortex#1535. We have test coverage verifying this is the case already in `BoxTest.testComputeNodeCastDoesntRequirePython`.
@johnhaddon johnhaddon force-pushed the removeIsInstanceOfHacks branch from 933a48c to 46f8c0a Compare June 16, 2026 10:42
@johnhaddon

Copy link
Copy Markdown
Member Author

I've fixed the CI failures caused by the Cortex update. The new Cortex version has stuff needed for a PointInstancer Gaffer PR, and also Eric's MeshLight stuff, so it'd be great to get eyes on this today.

@murraystevenson murraystevenson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've fixed the CI failures caused by the Cortex update. The new Cortex version has stuff needed for a PointInstancer Gaffer PR, and also Eric's MeshLight stuff, so it'd be great to get eyes on this today.

Thanks! LGTM. The only issue I've spotted is SceneViewUI._SelectionMaskPlugValueWidget needing to be updated to support the new PointInstancer, when building with this Cortex release the widget's icon is always stuck in the bright "On" state. I"m happy to see that fixed separately if getting this PR merged today would unblock other work...

Without this, the icon is always "stuck on". At some point we might want separate masks for Points and Point Instancers, but this is an easy fix that restores things to the way folks are already used to them.
@johnhaddon

Copy link
Copy Markdown
Member Author

I've pushed 91787e2 with a cheap and cheerful fix for the selection mask indicator.

@murraystevenson

Copy link
Copy Markdown
Contributor

I've pushed 91787e2 with a cheap and cheerful fix for the selection mask indicator.

Thanks! Cheap and cheerful looks good on my end.

@murraystevenson murraystevenson merged commit 369633e into GafferHQ:main Jun 16, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Pending Review to Pending release in Work in Progress Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pending release

Development

Successfully merging this pull request may close these issues.

2 participants