Skip to content

Commit b116bc9

Browse files
author
jonathan.bouyer
committed
fix(actor): prevent serialization of actors without a mapper
Fix bug where oglmapper wass undefined in traverseOpaquePass for an actor whose visibility got toggled twice
1 parent ce09dfe commit b116bc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/trame_vtk/modules/vtk/serializers

src/trame_vtk/modules/vtk/serializers/actors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def generic_actor_serializer(parent, actor, actor_id, context, depth):
6969
user_matrix[idx] = matrix.GetElement(i, j)
7070
add_on["userMatrix"] = user_matrix
7171

72-
if actor_visibility == 0 or (mapper_instance and property_instance):
72+
if mapper_instance and property_instance:
7373
return {
7474
"parent": reference_id(parent),
7575
"id": actor_id,

0 commit comments

Comments
 (0)