@@ -1024,6 +1024,9 @@ int Entity::pySetPosition(PyObject *value)
10241024 }
10251025
10261026 static PropertyDescription positionDescription (posuid, " VECTOR3" , " position" , ED_FLAG_ALL_CLIENTS , false , DataTypes::getDataType (" VECTOR3" ), false , 0 , " " , DETAIL_LEVEL_FAR );
1027+ if (scriptModule_->usePropertyDescrAlias () && positionDescription.aliasID () == -1 )
1028+ positionDescription.aliasID (ENTITY_BASE_PROPERTY_ALIASID_POSITION_XYZ );
1029+
10271030 onDefDataChanged (&positionDescription, value);
10281031 return 0 ;
10291032}
@@ -1147,8 +1150,11 @@ int Entity::pySetDirection(PyObject *value)
11471150 diruid = msgInfo->msgid ;
11481151 }
11491152
1150- static PropertyDescription positionDescription (diruid, " VECTOR3" , " direction" , ED_FLAG_ALL_CLIENTS , false , DataTypes::getDataType (" VECTOR3" ), false , 0 , " " , DETAIL_LEVEL_FAR );
1151- onDefDataChanged (&positionDescription, value);
1153+ static PropertyDescription directionDescription (diruid, " VECTOR3" , " direction" , ED_FLAG_ALL_CLIENTS , false , DataTypes::getDataType (" VECTOR3" ), false , 0 , " " , DETAIL_LEVEL_FAR );
1154+ if (scriptModule_->usePropertyDescrAlias () && directionDescription.aliasID () == -1 )
1155+ directionDescription.aliasID (ENTITY_BASE_PROPERTY_ALIASID_DIRECTION_ROLL_PITCH_YAW );
1156+
1157+ onDefDataChanged (&directionDescription, value);
11521158
11531159 return 0 ;
11541160}
@@ -1188,6 +1194,9 @@ void Entity::onPyPositionChanged()
11881194 }
11891195
11901196 static PropertyDescription positionDescription (posuid, " VECTOR3" , " position" , ED_FLAG_ALL_CLIENTS , false , DataTypes::getDataType (" VECTOR3" ), false , 0 , " " , DETAIL_LEVEL_FAR );
1197+ if (scriptModule_->usePropertyDescrAlias () && positionDescription.aliasID () == -1 )
1198+ positionDescription.aliasID (ENTITY_BASE_PROPERTY_ALIASID_POSITION_XYZ );
1199+
11911200 onDefDataChanged (&positionDescription, pPyPosition_);
11921201
11931202 if (this ->pEntityCoordinateNode ())
@@ -1231,8 +1240,11 @@ void Entity::onPyDirectionChanged()
12311240 diruid = msgInfo->msgid ;
12321241 }
12331242
1234- static PropertyDescription positionDescription (diruid, " VECTOR3" , " direction" , ED_FLAG_ALL_CLIENTS , false , DataTypes::getDataType (" VECTOR3" ), false , 0 , " " , DETAIL_LEVEL_FAR );
1235- onDefDataChanged (&positionDescription, pPyDirection_);
1243+ static PropertyDescription directionDescription (diruid, " VECTOR3" , " direction" , ED_FLAG_ALL_CLIENTS , false , DataTypes::getDataType (" VECTOR3" ), false , 0 , " " , DETAIL_LEVEL_FAR );
1244+ if (scriptModule_->usePropertyDescrAlias () && directionDescription.aliasID () == -1 )
1245+ directionDescription.aliasID (ENTITY_BASE_PROPERTY_ALIASID_DIRECTION_ROLL_PITCH_YAW );
1246+
1247+ onDefDataChanged (&directionDescription, pPyDirection_);
12361248}
12371249
12381250// -------------------------------------------------------------------------------------
0 commit comments