2
0
Эх сурвалжийг харах

Update DXFLoader.cpp

Edited out line suspected to be causing changes in position when changes in scale are made to inserted BLOCKS
seanth 1 жил өмнө
parent
commit
727001b0ca

+ 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 trafo, tmp;
                 aiMatrix4x4::Translation(-bl_src.base,trafo);
                 aiMatrix4x4::Translation(-bl_src.base,trafo);
                 trafo *= aiMatrix4x4::Scaling(insert.scale,tmp);
                 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.
                 // XXX rotation currently ignored - I didn't find an appropriate sample model.
                 if (insert.angle != 0.f) {
                 if (insert.angle != 0.f) {