You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Partial solution
Is the bug hiding near void WbView3D::selectNode(const QMouseEvent *event) or void WbSelection::selectPoseFromView3D(WbAbstractPose *p, bool handlesDisabled) ?
in WbSelection:81 in WbSelection::selectNode(WbBaseNode *n, bool handlesDisabled)
I got mSelectedAbstractPose == NULL when clicking on the transform node.
The text was updated successfully, but these errors were encountered:
This is not a bug but a design choice.
Only Solid nodes can be selected from the 3D view.
If you want to move a Transform node using the handles in the 3D view, you have to select it from the scene tree.
The reason of this design choice is to make it easier to select the part of the robots that are commonly defined using Solid nodes.
BTW : reading the code I've seen mSelectedAbstractPose = mSelectedNode ? dynamic_cast<WbAbstractPose *>(mSelectedNode) : NULL;
could it be replaced by mSelectedAbstractPose = dynamic_cast<WbAbstractPose *>(mSelectedNode); ?
it seems safe according to https://stackoverflow.com/questions/5155820/portably-safe-to-pass-null-zero-to-dynamic-cast
but I'm not a C++ expert !
Describe the Bug
ditto
Especially bad because I can't move it, to do so I need to select it in the tree.
Steps to Reproduce
Open
Click on the sphere, the Solid is selected
Click on the cube, the Transform is not selected
Idem when using a Pose instead of the Transform
Expected behavior
Object should get selected.
System
Partial solution
Is the bug hiding near
void WbView3D::selectNode(const QMouseEvent *event)
orvoid WbSelection::selectPoseFromView3D(WbAbstractPose *p, bool handlesDisabled)
?in WbSelection:81 in WbSelection::selectNode(WbBaseNode *n, bool handlesDisabled)
I got mSelectedAbstractPose == NULL when clicking on the transform node.
The text was updated successfully, but these errors were encountered: