Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Fix duplicate entity feature not using the modified value for position/rotation/scale #219

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

vincentfretin
Copy link
Contributor

Same PR than aframe-inspector aframevr/aframe-inspector#695 but on your repo. This fixes #186

Properly call setAttribute for position, rotation, scale when modifying with the TransformControls, so that entity.flushToDOM() works correctly when duplicating an entity.
This fixes aframevr/aframe-inspector#688
See my comment aframevr/aframe-inspector#688 (comment) for a more detailed explanation of the issue and the proposed fix.

@netlify
Copy link

netlify bot commented Jul 22, 2023

Deploy Preview for 3dstreet-editor-builds ready!

Name Link
🔨 Latest commit 653fef6
🔍 Latest deploy log https://app.netlify.com/sites/3dstreet-editor-builds/deploys/64bd72e410926200082d3442
😎 Deploy Preview https://deploy-preview-219--3dstreet-editor-builds.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.

…ng with the TransformControls, so that entity.flushToDOM() works correctly when duplicating an entity (fix 3DStreet#186)
@vincentfretin
Copy link
Contributor Author

In this same PR, I fixed the issue of model not loading when cloning entity like I described in
aframevr/aframe-inspector#689 (comment)

@kfarr
Copy link
Contributor

kfarr commented Jul 26, 2023

thanks @vincentfretin this worked great and I appreciate all the writeups, very helpful to understand the underlying issues.

@kfarr kfarr merged commit 07ea126 into 3DStreet:master Jul 26, 2023
4 checks passed
@kfarr
Copy link
Contributor

kfarr commented Jul 26, 2023

closes #186

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants