.. | .. |
---|
687 | 687 | { |
---|
688 | 688 | if (maxcount != 1) |
---|
689 | 689 | { |
---|
690 | | - new Exception().printStackTrace(); |
---|
| 690 | + //new Exception().printStackTrace(); |
---|
691 | 691 | } |
---|
692 | 692 | |
---|
693 | 693 | toParentMarked = LA.newMatrix(); |
---|
.. | .. |
---|
2369 | 2369 | |
---|
2370 | 2370 | InitOthers(); |
---|
2371 | 2371 | |
---|
2372 | | - if (this instanceof Camera) |
---|
2373 | | - { |
---|
2374 | | - material.shift = 90; |
---|
2375 | | - } |
---|
2376 | | - |
---|
2377 | 2372 | material.multiply = multiply; |
---|
2378 | 2373 | |
---|
2379 | 2374 | if (multiply) |
---|
.. | .. |
---|
7716 | 7711 | |
---|
7717 | 7712 | scale *= 0.05f * Globals.theRenderer.RenderCamera().Distance(); |
---|
7718 | 7713 | |
---|
7719 | | - if (modified || opposite) |
---|
| 7714 | + // Modified could snap |
---|
| 7715 | + if (//modified || |
---|
| 7716 | + opposite) |
---|
7720 | 7717 | { |
---|
7721 | 7718 | //assert(false); |
---|
7722 | 7719 | /* |
---|
.. | .. |
---|
7810 | 7807 | |
---|
7811 | 7808 | if (modified) |
---|
7812 | 7809 | { |
---|
7813 | | - // Rotate 90 degrees |
---|
| 7810 | + // Rotate 45 degrees |
---|
7814 | 7811 | angle /= (Math.PI / 4); |
---|
7815 | 7812 | angle = Math.floor(angle + 0.5); |
---|
7816 | 7813 | angle *= (Math.PI / 4); |
---|
.. | .. |
---|
7896 | 7893 | case 3: // '\001' |
---|
7897 | 7894 | if (modified || opposite) |
---|
7898 | 7895 | { |
---|
7899 | | - if (modified && opposite) |
---|
| 7896 | + if (modified) // && opposite) |
---|
7900 | 7897 | LA.matScale(toParent, totalScale, totalScale, totalScale); |
---|
7901 | 7898 | else |
---|
7902 | 7899 | //LA.matScale(toParent, 1, hScale, vScale); |
---|
.. | .. |
---|
7912 | 7909 | case 2: // '\002' |
---|
7913 | 7910 | if (modified || opposite) |
---|
7914 | 7911 | { |
---|
7915 | | - if (modified && opposite) |
---|
| 7912 | + if (modified) // && opposite) |
---|
7916 | 7913 | LA.matScale(toParent, totalScale, totalScale, totalScale); |
---|
7917 | 7914 | else |
---|
7918 | 7915 | //LA.matScale(toParent, hScale, 1, vScale); |
---|
.. | .. |
---|
7926 | 7923 | case 1: // '\003' |
---|
7927 | 7924 | if (modified || opposite) |
---|
7928 | 7925 | { |
---|
7929 | | - if (modified && opposite) |
---|
| 7926 | + if (modified) // && opposite) |
---|
7930 | 7927 | LA.matScale(toParent, totalScale, totalScale, totalScale); |
---|
7931 | 7928 | else |
---|
7932 | 7929 | //LA.matScale(toParent, hScale, vScale, 1); |
---|