Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Slice range was broken for key image setting on video #1737

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

wayfarer3130
Copy link
Collaborator

Context

When applying a key image to a video range, the playback/selection was broken and the key image only applied to a single image.

Changes & Results

Calculate the correct slice range if it isn't provided directly.

Testing

Run example videoRange, apply a key image to a range of images and ensure it displays on all the images in that range.

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

@wayfarer3130 wayfarer3130 requested a review from sedghi January 7, 2025 14:16
Copy link

stackblitz bot commented Jan 7, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit eefd9a0
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/677d37ad4da9a90008597afb
😎 Deploy Preview https://deploy-preview-1737--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -812,8 +812,10 @@ class VideoViewport extends Viewport {
let { imageURI } = options;
const { referencedImageId, sliceIndex: sliceIndex } = viewRef;
if (!super.isReferenceViewable(viewRef)) {
console.log('Video reference not viewable', viewRef);
Copy link
Member

Choose a reason for hiding this comment

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

remove?

@sedghi sedghi merged commit 9c48c74 into main Jan 7, 2025
26 checks passed
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