Browse Source

Call ApplyAttributes() on the cloned component to make sure attribute side-effects happen.

Lasse Öörni 11 years ago
parent
commit
1689d9223b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Engine/Scene/Node.cpp

+ 1 - 0
Source/Engine/Scene/Node.cpp

@@ -768,6 +768,7 @@ Component* Node::CloneComponent(Component* component, CreateMode mode, unsigned
                 cloneComponent->OnSetAttribute(attr, value);
             }
         }
+        cloneComponent->ApplyAttributes();
     }
     
     return cloneComponent;