SVGLoader: Fix bug with transforms of brother nodes
@@ -120,7 +120,18 @@ THREE.SVGLoader.prototype = {
if ( transform ) {
- currentTransform.copy( transformStack.pop() );
+ transformStack.pop();
+
+ if ( transformStack.length > 0 ) {
+ currentTransform.copy( transformStack[ transformStack.length - 1 ] );
+ }
+ else {
+ currentTransform.identity();
}