Pārlūkot izejas kodu

set isAtRest report to read-only

AzaezelX 3 nedēļas atpakaļ
vecāks
revīzija
d5a111e9ff
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Engine/source/T3D/rigidShape.cpp

+ 1 - 1
Engine/source/T3D/rigidShape.cpp

@@ -1688,7 +1688,7 @@ void RigidShape::initPersistFields()
    docsURL;
    docsURL;
    addField("disableMove", TypeBool, Offset(mDisableMove, RigidShape),
    addField("disableMove", TypeBool, Offset(mDisableMove, RigidShape),
       "When this flag is set, the vehicle will ignore throttle changes.");
       "When this flag is set, the vehicle will ignore throttle changes.");
-   addField("isAtRest", TypeBool, Offset(mRigid.atRest, RigidShape),
+   addProtectedField("isAtRest", TypeBool, Offset(mRigid.atRest, RigidShape), &defaultProtectedNotSetFn, &defaultProtectedGetFn,
       "Debug read of the rest state. do not set");   
       "Debug read of the rest state. do not set");   
    Parent::initPersistFields();
    Parent::initPersistFields();
 }
 }