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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user