Browse Source

Update DXFLoader.cpp

Edited out line suspected to be causing changes in position when changes in scale are made to inserted BLOCKS
seanth 1 year ago
parent
commit
727001b0ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/AssetLib/DXF/DXFLoader.cpp

+ 1 - 1
code/AssetLib/DXF/DXFLoader.cpp

@@ -373,7 +373,7 @@ void DXFImporter::ExpandBlockReferences(DXF::Block& bl,const DXF::BlockMap& bloc
                 aiMatrix4x4 trafo, tmp;
                 aiMatrix4x4::Translation(-bl_src.base,trafo);
                 trafo *= aiMatrix4x4::Scaling(insert.scale,tmp);
-                trafo *= aiMatrix4x4::Translation(insert.pos,tmp);
+                //trafo *= aiMatrix4x4::Translation(insert.pos,tmp);
 
                 // XXX rotation currently ignored - I didn't find an appropriate sample model.
                 if (insert.angle != 0.f) {