* render direction arrow for group entities, having angle/angles key set or having angle/angles/direction attribute in .ent

draw condition relies on entity.getKeyValue, which also provides default values; thus removed default "0" for all group entities in .def loader
mind to add entity.getOnlySpecifiedKeyValue func or perform by visitor?
This commit is contained in:
Garux
2018-08-16 20:00:58 +03:00
parent 6ad88b42fa
commit c5f2279f4a
8 changed files with 91 additions and 28 deletions

View File

@@ -56,7 +56,7 @@
/// integer3 three integer values //not supported
/// real floating-point value
/// angle specialisation of real - Yaw angle
/// direction specialisation of real - Yaw angle, -1 = down, -2 = up
/// direction specialisation of real - Yaw angle, -1 = up, -2 = down
/// real3 three floating-point values
/// angles specialisation of real3 - Pitch Yaw Roll
/// color specialisation of real3 - RGB floating-point colour
@@ -213,6 +213,9 @@ AttributeImporter( StringOutputStream& comment, EntityClass* entityClass, const
entityClass->miscmodel_is = true;
entityClass->m_miscmodel_key = key;
}
else if( string_equal( type, "angle" ) || string_equal( type, "angles" ) || string_equal( type, "direction" ) ){
entityClass->has_angles = true;
}
m_comment << key;
m_comment << " : ";