Ver Fonte

Clone animation target when cloning material parameters.

Jeremy Karlson há 13 anos atrás
pai
commit
7cbcf1f9a0
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      gameplay/src/MaterialParameter.cpp

+ 3 - 0
gameplay/src/MaterialParameter.cpp

@@ -663,6 +663,9 @@ void MaterialParameter::cloneInto(MaterialParameter* materialParameter) const
         GP_ERROR("Unsupported material parameter type(%d).", _type);
         GP_ERROR("Unsupported material parameter type(%d).", _type);
         break;
         break;
     }
     }
+    
+    NodeCloneContext context;
+    this->AnimationTarget::cloneInto(materialParameter, context);
 }
 }
 
 
 }
 }