@ -61,35 +61,35 @@ namespace EMStudio
renderOptionsButton - > setIcon ( QIcon ( " :/EMotionFXAtom/Visualization.svg " ) ) ;
addWidget ( renderOptionsButton ) ;
CreateViewOptionEntry ( contextMenu , " Solid " , EMotionFX : : ActorRenderFlag : : RENDER_ SOLID) ;
CreateViewOptionEntry ( contextMenu , " Wireframe " , EMotionFX : : ActorRenderFlag : : RENDER_ WIREFRAME) ;
CreateViewOptionEntry ( contextMenu , " Solid " , EMotionFX : : ActorRenderFlag Index : : SOLID) ;
CreateViewOptionEntry ( contextMenu , " Wireframe " , EMotionFX : : ActorRenderFlag Index : : WIREFRAME) ;
// [EMFX-TODO] Add those option once implemented.
// CreateViewOptionEntry(contextMenu, "Lighting", EMotionFX::ActorRenderFlag ::RENDER_LIGHTING);
// CreateViewOptionEntry(contextMenu, "Backface Culling", EMotionFX::ActorRenderFlag ::RENDER_BACKFACECULLING);
// CreateViewOptionEntry(contextMenu, "Lighting", EMotionFX::ActorRenderFlag Index ::RENDER_LIGHTING);
// CreateViewOptionEntry(contextMenu, "Backface Culling", EMotionFX::ActorRenderFlag Index ::RENDER_BACKFACECULLING);
contextMenu - > addSeparator ( ) ;
CreateViewOptionEntry ( contextMenu , " Vertex Normals " , EMotionFX : : ActorRenderFlag : : RENDER_ VERTEXNORMALS) ;
CreateViewOptionEntry ( contextMenu , " Face Normals " , EMotionFX : : ActorRenderFlag : : RENDER_ FACENORMALS) ;
CreateViewOptionEntry ( contextMenu , " Tangents " , EMotionFX : : ActorRenderFlag : : RENDER_ TANGENTS) ;
CreateViewOptionEntry ( contextMenu , " Actor Bounding Boxes " , EMotionFX : : ActorRenderFlag : : RENDER_ AABB) ;
CreateViewOptionEntry ( contextMenu , " Vertex Normals " , EMotionFX : : ActorRenderFlag Index : : VERTEXNORMALS) ;
CreateViewOptionEntry ( contextMenu , " Face Normals " , EMotionFX : : ActorRenderFlag Index : : FACENORMALS) ;
CreateViewOptionEntry ( contextMenu , " Tangents " , EMotionFX : : ActorRenderFlag Index : : TANGENTS) ;
CreateViewOptionEntry ( contextMenu , " Actor Bounding Boxes " , EMotionFX : : ActorRenderFlag Index : : AABB) ;
contextMenu - > addSeparator ( ) ;
CreateViewOptionEntry ( contextMenu , " Line Skeleton " , EMotionFX : : ActorRenderFlag : : RENDER_ LINESKELETON) ;
CreateViewOptionEntry ( contextMenu , " Solid Skeleton " , EMotionFX : : ActorRenderFlag : : RENDER_ SKELETON) ;
CreateViewOptionEntry ( contextMenu , " Joint Names " , EMotionFX : : ActorRenderFlag : : RENDER_ NODENAMES) ;
CreateViewOptionEntry ( contextMenu , " Joint Orientations " , EMotionFX : : ActorRenderFlag : : RENDER_ NODEORIENTATION) ;
CreateViewOptionEntry ( contextMenu , " Line Skeleton " , EMotionFX : : ActorRenderFlag Index : : LINESKELETON) ;
CreateViewOptionEntry ( contextMenu , " Solid Skeleton " , EMotionFX : : ActorRenderFlag Index : : SKELETON) ;
CreateViewOptionEntry ( contextMenu , " Joint Names " , EMotionFX : : ActorRenderFlag Index : : NODENAMES) ;
CreateViewOptionEntry ( contextMenu , " Joint Orientations " , EMotionFX : : ActorRenderFlag Index : : NODEORIENTATION) ;
// [EMFX-TODO] Add those option once implemented.
// CreateViewOptionEntry(contextMenu, "Actor Bind Pose", EMotionFX::ActorRenderFlag ::RENDER_ACTORBINDPOSE);
// CreateViewOptionEntry(contextMenu, "Actor Bind Pose", EMotionFX::ActorRenderFlag Index ::RENDER_ACTORBINDPOSE);
contextMenu - > addSeparator ( ) ;
CreateViewOptionEntry ( contextMenu , " Hit Detection Colliders " , EMotionFX : : ActorRenderFlag : : RENDER_ HITDETECTION_COLLIDERS, true ,
CreateViewOptionEntry ( contextMenu , " Hit Detection Colliders " , EMotionFX : : ActorRenderFlag Index : : HITDETECTION_COLLIDERS, true ,
" :/EMotionFXAtom/HitDetection.svg " ) ;
CreateViewOptionEntry ( contextMenu , " Ragdoll Colliders " , EMotionFX : : ActorRenderFlag : : RENDER_ RAGDOLL_COLLIDERS, true ,
CreateViewOptionEntry ( contextMenu , " Ragdoll Colliders " , EMotionFX : : ActorRenderFlag Index : : RAGDOLL_COLLIDERS, true ,
" :/EMotionFXAtom/RagdollCollider.svg " ) ;
CreateViewOptionEntry ( contextMenu , " Ragdoll Joint Limits " , EMotionFX : : ActorRenderFlag : : RENDER_ RAGDOLL_JOINTLIMITS, true ,
CreateViewOptionEntry ( contextMenu , " Ragdoll Joint Limits " , EMotionFX : : ActorRenderFlag Index : : RAGDOLL_JOINTLIMITS, true ,
" :/EMotionFXAtom/RagdollJointLimit.svg " ) ;
CreateViewOptionEntry ( contextMenu , " Cloth Colliders " , EMotionFX : : ActorRenderFlag : : RENDER_ CLOTH_COLLIDERS, true ,
CreateViewOptionEntry ( contextMenu , " Cloth Colliders " , EMotionFX : : ActorRenderFlag Index : : CLOTH_COLLIDERS, true ,
" :/EMotionFXAtom/Cloth.svg " ) ;
CreateViewOptionEntry ( contextMenu , " Simulated Object Colliders " , EMotionFX : : ActorRenderFlag : : RENDER_ SIMULATEDOBJECT_COLLIDERS, true ,
CreateViewOptionEntry ( contextMenu , " Simulated Object Colliders " , EMotionFX : : ActorRenderFlag Index : : SIMULATEDOBJECT_COLLIDERS, true ,
" :/EMotionFXAtom/SimulatedObjectCollider.svg " ) ;
CreateViewOptionEntry ( contextMenu , " Simulated Joints " , EMotionFX : : ActorRenderFlag : : RENDER_ SIMULATEJOINTS) ;
CreateViewOptionEntry ( contextMenu , " Simulated Joints " , EMotionFX : : ActorRenderFlag Index : : SIMULATEJOINTS) ;
}
// Add the camera button
@ -158,7 +158,7 @@ namespace EMStudio
}
void AnimViewportToolBar : : CreateViewOptionEntry (
QMenu * menu , const char * menuEntryName , uint32_t actionIndex , bool visible , const char * iconFileName )
QMenu * menu , const char * menuEntryName , AZ : : u8 actionIndex , bool visible , const char * iconFileName )
{
QAction * action = menu - > addAction (
menuEntryName ,
@ -194,13 +194,13 @@ namespace EMStudio
m_manipulatorActions [ mode ] - > setChecked ( true ) ;
}
const EMotionFX : : ActorRenderFlag Bit set renderFlags = renderOptions - > GetRenderFlags ( ) ;
for ( size_t i = 0 ; i < renderFlags . size ( ) ; + + i )
const EMotionFX : : ActorRenderFlag s renderFlags = renderOptions - > GetRenderFlags ( ) ;
for ( uint8 i = 0 ; i < EMotionFX : : ActorRenderFlagIndex : : NUM_RENDERFLAGINDEXES ; + + i )
{
QAction * action = m_renderActions [ i ] ;
if ( action )
{
action - > setChecked ( renderFlags[ i ] ) ;
action - > setChecked ( EMotionFX: : ActorRenderFlagUtil : : CheckBit ( renderFlags , i ) ) ;
}
}
}