Преглед изворни кода

Made Item network members properly in the editor.

Daniel Buckmaster пре 13 година
родитељ
комит
a8205240e3
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 5 0
      Engine/source/T3D/item.cpp
  2. 1 0
      Engine/source/T3D/item.h

+ 5 - 0
Engine/source/T3D/item.cpp

@@ -457,6 +457,11 @@ void Item::onDeleteNotify( SimObject *obj )
    Parent::onDeleteNotify( obj );
 }
 
+void Item::inspectPostApply() 
+{ 
+   setMaskBits(InitialUpdateMask); 
+} 
+
 // Lighting: -----------------------------------------------------------------
 
 void Item::registerLights(LightManager * lightManager, bool lightingScene)

+ 1 - 0
Engine/source/T3D/item.h

@@ -149,6 +149,7 @@ class Item: public ShapeBase
    bool buildPolyList(PolyListContext context, AbstractPolyList* polyList, const Box3F &box, const SphereF &sphere);
    void buildConvex(const Box3F& box, Convex* convex);
    void onDeleteNotify(SimObject*);
+   void inspectPostApply();
 
   protected:
    void _updatePhysics();