Core: Datums: Fix axis placement and add migration script.
This commit is contained in:
@@ -83,12 +83,12 @@ void ViewProviderLine::attach(App::DocumentObject *obj) {
|
||||
|
||||
SbVec3f verts[2];
|
||||
if (noRole) {
|
||||
verts[0] = SbVec3f(2 * size, 0, 0);
|
||||
verts[0] = SbVec3f(0, 0, 2 * size);
|
||||
verts[1] = SbVec3f(0, 0, 0);
|
||||
}
|
||||
else {
|
||||
verts[0] = SbVec3f(size, 0, 0);
|
||||
verts[1] = SbVec3f(0.2 * size, 0, 0);
|
||||
verts[0] = SbVec3f(0, 0, size);
|
||||
verts[1] = SbVec3f(0, 0, 0.2 * size);
|
||||
}
|
||||
|
||||
// indexes used to create the edges
|
||||
@@ -107,7 +107,7 @@ void ViewProviderLine::attach(App::DocumentObject *obj) {
|
||||
sep->addChild ( pLines );
|
||||
|
||||
auto textTranslation = new SoTranslation ();
|
||||
textTranslation->translation.setValue ( SbVec3f ( size * 1.1, 0, 0 ) );
|
||||
textTranslation->translation.setValue(SbVec3f(0, 0, size * 1.1));
|
||||
sep->addChild ( textTranslation );
|
||||
|
||||
auto ps = new SoPickStyle();
|
||||
|
||||
Reference in New Issue
Block a user