Core: Implement SoFCTransform node

In its doAction() method it only sets the model matrix if it's not the identity matrix.
This improves the issue #7606
This commit is contained in:
wmayer
2024-11-11 23:22:49 +01:00
committed by wwmayer
parent 6f80773166
commit 8b70bf5cb1
5 changed files with 151 additions and 1 deletions

View File

@@ -42,6 +42,7 @@
#include <Base/Matrix.h>
#include "Inventor/SoMouseWheelEvent.h"
#include "Inventor/SoFCTransform.h"
#include "ViewProvider.h"
#include "ActionFunction.h"
#include "Application.h"
@@ -104,7 +105,7 @@ ViewProvider::ViewProvider()
pcRoot->ref();
pcModeSwitch = new SoSwitch();
pcModeSwitch->ref();
pcTransform = new SoTransform();
pcTransform = new SoFCTransform();
pcTransform->ref();
pcRoot->addChild(pcTransform);
pcRoot->addChild(pcModeSwitch);