Selaa lähdekoodia

Fixed Scene not calling MarkNetworkUpdate() on itself when the smoothing parameters are changed.

Lasse Öörni 13 vuotta sitten
vanhempi
sitoutus
128aa4735d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      Engine/Scene/Scene.cpp

+ 2 - 0
Engine/Scene/Scene.cpp

@@ -381,11 +381,13 @@ void Scene::SetActive(bool enable)
 void Scene::SetSmoothingConstant(float constant)
 {
     smoothingConstant_ = Max(constant, M_EPSILON);
+    Node::MarkNetworkUpdate();
 }
 
 void Scene::SetSnapThreshold(float threshold)
 {
     snapThreshold_ = Max(threshold, 0.0f);
+    Node::MarkNetworkUpdate();
 }
 
 void Scene::AddRequiredPackageFile(PackageFile* package)