瀏覽代碼

Update DXFLoader.cpp

Edited out line suspected to be causing changes in position when changes in scale are made to inserted BLOCKS
seanth 1 年之前
父節點
當前提交
727001b0ca
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {