Comments (3)
Can you please demonstrate with a fiddle what's going wrong: https://jsfiddle.net/narenjcs/8ret1b9z/13/
It's currently not clear to me if this is a bug or if it is just the expected behavior.
from three.js.
I've created a fiddle by myself: https://jsfiddle.net/3cbrz8k4/3/
What we see is the expected behavior when enabling on transformGroup
.
Objects organized in groups usually are logically connected so it makes sense when transformGroup
is set to true
, the entire group is affected. I understand there is the use case if just a single object of the hierarchy is added to the controls and transformGroup
is set to true
. In this case, users might expect the controls do not affect the hierarchy. But I'm unsure if this is right considering that enabling transformGroup
should transform groups. That's the hole point of the property.
Nevertheless, we could basically check if the detected group is part of the objects
array maintained by DragControls
but that would potentially break other use cases which rely on the current behavior. As long as no other devs report the issue, let's keep the current default.
from three.js.
Nevertheless, we could basically check if the detected group is part of the objects array maintained by DragControls
Here is a custom version of DragControls
that implements the suggested fix: https://jsfiddle.net/3bc8Lov7/
There is now a new helper function inObjects()
that checks whether a found group belongs to the object hierarchies managed by DragControls
.
from three.js.
Related Issues (20)
- WebGPURenderer: global clipping planes applied to color space and tone mapping pass. HOT 4
- Clear only certain stencil bits HOT 5
- Inconsistency in setColorAt() Method Behavior Between BatchedMesh and InstancedMesh
- Three.js outlinePass add-on not working when implemented with R3F HOT 1
- Consider providing an interface with a custom calculated mouse relative information in the transformControls HOT 2
- Bug WebGPURenderer set scene.environment break NodeMaterial HOT 2
- Parcel build addons.js fails due to SVGRenderer double definition HOT 1
- LDraw Packing script doesn't mention you also need to create a package.json to run HOT 5
- VideoTexture: Slow performance on Quest Browser in non-XR mode. HOT 14
- WebXR Depth Sensing: re-architect how occlusion is done HOT 4
- TSL: Array of vectors as uniform. HOT 3
- Try using Texture2DArrays with wgslFn leads to errors
- Nodes: Line2NodeMaterial dash mode broken HOT 3
- GLTF Export Optimization HOT 2
- WebGPURenderer error loading GLTF HOT 5
- Json Parsing changes for Shape/Path/Curves subclasses' CurrentPoint HOT 1
- Editor lights are not exported correctly to GLB HOT 2
- CDN es6 module import requires importmap (Vanilla JS) HOT 2
- examples/webgpu_morphtargets_face.html uses rgba32-float filtering textures without checking feature HOT 6
- WebGPURenderer: errors thrown rendering line segments HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three.js.