You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Mesh
Tommy Walton 5656736db4
Fix for LYN-3726 : Actor Draw Character Doesn't Work (#1336)
-Re-purposed an unused boolean in RPI::Cullable for previous frame's visiblity to instead represent objects that are hidden in the simulation.
-Updated MeshFeatureProcessor::SetVisible to set this value on the cullable.
-Updated the MeshComponent to handle visiblity changes by not rendering the mesh instead of deactivating and/or reactivating the component.
-Updated the AtomActorInstance to handle changes to the visibility from the ActorComponent.

Tested by creating two entities with static mesh components, on entity hidden and the other visible. Plus three entities with actor components, one where the actor is visible, one where the entity is visible but the 'render character' setting on the actor component is disabled, and one where the 'render character' setting is enabled, but the entity is not visible.

For each of these 5 entities, I added them as 5 loose entities, 5 entities that were children to a parent entity, and a slice with all 5 as children to a parent entity, and tested toggling visibility of the parent entities.

For each of these 3 sets of 5 entities, I added them directly to the level, added them all to a layer where the layer was visible, and added them all to a layer where the layer was not visible, and tested toggling the visibility of the layers.
5 years ago
..
EditorMeshComponent.cpp Fix for LYN-3726 : Actor Draw Character Doesn't Work (#1336) 5 years ago
EditorMeshComponent.h Fix for LYN-3726 : Actor Draw Character Doesn't Work (#1336) 5 years ago
EditorMeshSystemComponent.cpp O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago
EditorMeshSystemComponent.h O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago
MeshComponent.cpp O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago
MeshComponent.h O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago
MeshComponentController.cpp Fix for LYN-3726 : Actor Draw Character Doesn't Work (#1336) 5 years ago
MeshComponentController.h O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago
MeshThumbnail.cpp O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago
MeshThumbnail.h O3DE Copyright Updates for Linux Foundation (#1504) 5 years ago