Forráskód Böngészése

Fixed missing registration of SmoothedTransform.

Lasse Öörni 13 éve
szülő
commit
3ce34fe7e4
2 módosított fájl, 3 hozzáadás és 1 törlés
  1. 1 1
      Bin/Data/Scripts/TestScene.as
  2. 2 0
      Engine/Scene/Scene.cpp

+ 1 - 1
Bin/Data/Scripts/TestScene.as

@@ -411,7 +411,7 @@ void HandleSpawnBox(StringHash eventType, VariantMap& eventData)
     RigidBody@ body = newNode.CreateComponent("RigidBody");
     body.mass = 1;
     body.linearVelocity = rotation * Vector3(0.0, 1.0, 10.0);
-    body.linearDamping = 0.001;
+    body.linearDamping = 0.1;
     body.friction = 1.0;
 
     BoxShape@ shape = newNode.CreateComponent("BoxShape");

+ 2 - 0
Engine/Scene/Scene.cpp

@@ -31,6 +31,7 @@
 #include "Profiler.h"
 #include "Scene.h"
 #include "SceneEvents.h"
+#include "SmoothedTransform.h"
 #include "WorkQueue.h"
 #include "XMLFile.h"
 
@@ -692,4 +693,5 @@ void RegisterSceneLibrary(Context* context)
 {
     Node::RegisterObject(context);
     Scene::RegisterObject(context);
+    SmoothedTransform::RegisterObject(context);
 }